I\'d like to automatically generate a file and add it to a commit if it has changed. Is it possible, if so, what hooks should I use?
Context: I\'m programming a CSS
No, it won’t break anything. You can freely use git add in a pre-commit hook.
git add
pre-commit