Source:
https://medium.com/@nicklee1/prepending-your-git-commit-messages-with-user-story-ids-3bfea00eab5a
Open up the .git/hooks directory of the project in a text editor. Look for the file called prepare-commit-msg.sample
and replace it's content with this script:
#!/bin/bash
# Include any branches for which you wish to disable this script
if [ -z "$BRANCHES_TO_SKIP" ]; then