Cross-referencing commits in github

GitGithub

Git Problem Overview


I'd like to reference commits in other repos (in this case submodules) in the github issues of my main repo. Is it possible to do so without typing the full hyperlink in a way similar to how github creates a shortened hyperlink from the commit number?

Git Solutions


Solution 1 - Git

The answer, so us lazy people can find it without following the link to the Autolinked References and URLs section of the GitHub help:

User/Project@SHA

For example:

mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2

Short SHAs work as well (as long as they are unique):

mojombo/god@be6a8cc

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionjkclView Question on Stackoverflow
Solution 1 - GitMartin VilcansView Answer on Stackoverflow