I\'d like to add an automatically generated file to the same commit using a pre- or post-commit hook in Git, dependent on the files that were modified in that commit. How w
How about writing a post-commit script instead which generates your files, and then have that do (something along the lines of) git add my_files; git commit --amend.