I have pushed a commit to my repo. But I forgot to link it to an issue via adding #<issue ID>
to the commit message. Can I link it to the issue by some approach I don't know on GitHub? Or I have to rewrite the history (amend the commit and push -f)?
Thank you!
I usually paste the commit hash in a comment on the Issue. GitHub automatically creates a link out of the hash. It's reverse of what you are asking, but functionally solves the same problem of creating a link between the commit and the issue.