I find a lot of answers on how to reference a GitHub issue in a git comment (using the #xxx notation).
I’d like to reference a commit in my comment, generating a link to the commit details page?
I find a lot of answers on how to reference a GitHub issue in
Share
To reference a commit, simply write its SHA-hash, and it’ll automatically get turned into a link.
Or use its prefix
See also:
Writing on GitHub.