Skip to content

Instantly share code, notes, and snippets.

@mtigdemir
Created November 25, 2015 20:28
Show Gist options
  • Select an option

  • Save mtigdemir/d7891915ae3c6fcd8abd to your computer and use it in GitHub Desktop.

Select an option

Save mtigdemir/d7891915ae3c6fcd8abd to your computer and use it in GitHub Desktop.
Global Git Commit Hook
git config --global init.templatedir '~/.git-templates'
mkdir -p ~/.git-templates/hooks
touch ~/.git-templates/hooks/pre-commit
chmod a+x ~/.git-templates/hooks/pre-commit
@mtigdemir
Copy link
Copy Markdown
Author

git init is required for activate !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment