- add
prepare-commit-msg
it to ./.git/hooks/ - Make it executable (chmod +x filename)
It should prepend [#STORY_ID]
into your commit message when the editor pops up.
Your branch must be in this format to work: branch-description-blabla-STORY_ID
it skips the prepaend if:
- The branch doesn't end in a story id (integer)
- The original commit message starts with "Merge"