Open nikhilaravi opened 8 years ago
This issue refers to what you want? http://stackoverflow.com/questions/2293498/git-commit-hooks-global-settings
cool thanks. I've already set the init template directory so all new repos get the hooks, just wanted a magic solution to add the hooks to all my existing repos :blush:
Nice script! :+1: :blush:
Are these git hooks only for a single repo or should they be added to the hooks folder in your home directory (
~./git/hooks
) so they are copied into each new git repo you create/clone? If the latter case, is there a way to add them to all existing repos without having to dogit init
manually inside each repo? (Does that make sense?)