progit2 icon indicating copy to clipboard operation
progit2 copied to clipboard

Customizing Git - missing HooksPath

Open dario-piotrowicz opened this issue 4 years ago • 0 comments

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)

dario-piotrowicz avatar Apr 11 '21 17:04 dario-piotrowicz