progit2
progit2 copied to clipboard
Customizing Git - missing HooksPath
In the Git Hooks section it is specified that githooks are not copied when you clone a repository, this is true because they reside inside .git (/hooks), but they could be copied by simply having them in a different directory and updating the core.hooksPath configuration.
I would imagine that it would be good to state this too in the section.
Saying that by updating the core.hooksPath you can keep the hooks synced with the repository and that committers cloning the repo would just need to update their configuration to enable the hooks.
Let me know what you think and if I can help with this (I would not mind adding this info myself if possible)