In order to prepend issue number
to your git commit message from your branch name
. Copy the prepare-commit-msg
to your .git/hooks/
folder. You can find details about it in the resource link. Example shown with image below.
Branch name with issue number
Issue number in commit message