git init template, replacing modified hooks

Posted by Roy Kolak on Stack Overflow See other posts from Stack Overflow or by Roy Kolak
Published on 2010-06-09T15:01:57Z Indexed on 2010/06/09 15:12 UTC
Read the original article Hit count: 275

Filed under:
|

I am constantly updating my local git hooks. I have a repo to house my .git template. This means that I am constantly running git init --template=../git-template to update repos with my hook changes.

Problem: Everytime I run git init --temp..., I need to first remove the hooks in .git/hooks that will be replaced with the updated hooks. This is annoying. I know I can script the removal of these hooks from the repo that I want to update, but is this functionality built into git already?

© Stack Overflow or respective owner

Related posts about git

Related posts about githooks