2 ms·
unless your branch name matches the jira/story id
unless your branch name matches the jira/story id
Put it in the commit message.
Especially for git, because old branches can be cleaned up/deleted which results in a loss of tracking.
So afterwards you look at the tree, find the matching merge commit containing the branch name and find the ticket that way?