Open a Jira issue then go to the Git Commits tab. In this tab, you will see commits, files changed, links to external repository, commit author and more.
In the above example, the issue key GIT-4322 text is inserted into a git commit message to link the commit to this issue.
The git commit will get associated with the Jira issue if the commit message includes the exact issue ID. The Git Integration for Jira add-on will automatically index new commits and associate the referenced issue. For better readability, place the issue key text at the start of the commit message.
Git administrator »
If you want to enforce the commit with a hook, please install this Git commit hook script – Commit-msg Hook.