Not sure how adding hook to repo will help. IMO using templates is a good
you may want to create a template directory with all the standard
configuration and ask everyone to "git init" using this argument..
Specify the directory from which templates will be used. (See
the "TEMPLATE DIRECTORY" section below.)
Personally i prefer setting environment variable GIT_TEMPLATE_DIR as the
environment variable for everyone on that project.
On Thu, Aug 16, 2012 at 9:55 PM, Bryce Verdier <bryceverd...@gmail.com>wrote:
> Hi all,
> I was just curious if anyone is aware of best practices for sharing git
> hooks within a project.
> For example, say I wanted everyone to use the same pre-commit hook, would
> I just add it to the repo?
> Thanks in advance,
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To post to this group, send email to firstname.lastname@example.org.
> To unsubscribe from this group, send email to git-users+unsubscribe@**
> googlegroups.com <git-users%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at http://groups.google.com/**
> group/git-users?hl=en <http://groups.google.com/group/git-users?hl=en>.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at