Can a Git hook automatically add files to the commit?
Since git add was also not working for me in a pre commit, I followed mark’s idea of using a .commit file and splitting the process into pre- and post-commit. Here is some code that should be easy to understand In the pre-commit: Touch a file .commit or something. (be sure to add this to … Read more