How can I reference a commit in an issue comment on GitHub?

LodeRunner picture LodeRunner · Jan 18, 2012 · Viewed 187.7k times · Source

I find a lot of answers on how to reference a GitHub issue in a git commit (using the #xxx notation). I'd like to reference a commit in my comment, generating a link to the commit details page?

Answer

Sebastian Paaske Tørholm picture Sebastian Paaske Tørholm · Jan 18, 2012

To reference a commit, simply write its SHA-hash, and it'll automatically get turned into a link.

See also: