Everyone knows you cannot commit anything in .git/hooks
because it's not a git repository.
So I wrote a script to symlink all hooks in .git/hooks
to point to all of my hooks located in my_repo/hooks/driver
. Now I can track and commit my hooks, as I please. This was recommended by several stack overflow users across many threads (see link below).
Putting git hooks into repository
The problem is I don't want other developers (who work on the same repository) to manually run my script, it should just run automatically run when they pull or init the repository (assuming they did not run it once already).
Anyone have any ideas? Tons of threads on tracking git hooks, none on automating it once the script is written (i.e. like I have). :(