Skip to content

Instantly share code, notes, and snippets.

@simonrenoult
Created June 16, 2016 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonrenoult/fc3581bab76997effd0f0d01f56ada48 to your computer and use it in GitHub Desktop.
Save simonrenoult/fc3581bab76997effd0f0d01f56ada48 to your computer and use it in GitHub Desktop.
COMMIT_MSG_SCRIPT_URL=https://raw.githubusercontent.com/angular/angular.js/c94329a891a1c082567c490ccf58ba8592b464ad/validate-commit-msg.js
COMMIT_MSG_SCRIPT_LOCATION=.git/hooks/commit-msg
touch $COMMIT_MSG_SCRIPT_LOCATION
curl $COMMIT_MSG_SCRIPT_URL > $COMMIT_MSG_SCRIPT_LOCATION
chmod +x .git/hooks/commit-msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment