jrans / Node-Git-Hooks

Examples of Git hooks written in node with script to initialise them
9 stars 1 forks source link

Copying over git hooks to existing repos #2

Open nikhilaravi opened 8 years ago

nikhilaravi commented 8 years ago

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 do git init manually inside each repo? (Does that make sense?)

jrans commented 8 years ago

This issue refers to what you want? http://stackoverflow.com/questions/2293498/git-commit-hooks-global-settings

jrans commented 8 years ago

Aldo could do something like hub and wrap around entirely

nikhilaravi commented 8 years ago

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: