We’d like to make a few basic hook scripts that we can all share — for things like pre-formatting commit messages. Git has hook scripts for that that are normally stored under <project>/.git/hooks/. However, those scripts are not propagated when people do a clone and they are not version controlled.

Is there a good way to help everyone get the right hook scripts? Can I just make those hook scripts point to version controlled scripts in my repo?

14 Answers
14

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *