Table of Contents
You can mention any epic, user story, task or issue via commit message to show a commit link in the history panel.
Just add to your commit message something like:
TG-REF
-
REF: US/Issue/Task reference of the element you want to modify