Home > Software design >  How to get a commit SHA to link to Github commit in markdown file
How to get a commit SHA to link to Github commit in markdown file

Time:11-12

In GitHub a commit SHA in an issue or comment is automatically hyperlinked to the commit when it renders on the browser, however in a markdown file (e.g Changelog.md) this does not happen (an example). Is there a way to get this same behaviour in markdown files?

CodePudding user response:

It looks like autolinked references are not supported in regular md files.

This Post talks about using absolute and relative references such as:

  • [<hash>](https://github.com/user/project/commit/<hash>)
  • [<hash>](/../../commit/<hash>)
  • Related