Skip to content

Instantly share code, notes, and snippets.

@trylix
Created March 2, 2022 16:32
Show Gist options
  • Select an option

  • Save trylix/44b77c225a5ea92905fdf61df18f7672 to your computer and use it in GitHub Desktop.

Select an option

Save trylix/44b77c225a5ea92905fdf61df18f7672 to your computer and use it in GitHub Desktop.
#!/bin/sh
# copy the “prepare commit msg” script to the proper hooks folder and fix the permission on that folder
# just run the script and on the next commit you will see the jira prefix
curl https://gist.githubusercontent.com/trylix/38e43750deedf3d83f13e6392904aed1/raw/0658f176f79d3b57e22141d5fd50681ff5b1498d/prepare-commit-msg.sh > .git/hooks/prepare-commit-msg && chmod u+x .git/hooks/prepare-commit-msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment