Skip to content

Instantly share code, notes, and snippets.

@simonrenoult
Created June 16, 2016 08:36
Embed
What would you like to do?
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