Joined August 2012
·

Aleksey V. Zapparov

Software Anarchist at vidIQ
·
Spain, Alicante, Calpe
·
·
·

Posted to Global Git Hooks over 1 year ago

Would like to add that you can:

  • place your hook into $PREFIX/share/git-core/templates/hooks where $PREFIX is /usr or /usr/local to make that hook "global".
  • place your hook into home dir somewhere just like this tip suggests and set init.template_directory git variable to point that dir, instead of explicitly specifying it every time.

See: http://stackoverflow.com/questions/2293498/git-commit-hooks-global-settings

Achievements
255 Karma
10,623 Total ProTip Views