Github commit message links

后端 未结 2 1807
终归单人心
终归单人心 2021-02-01 02:14

Is it possible to create a commit message with link to other repository commit?

Eg. something like [Username\\Repo\\commitHash]

Usage example: i

相关标签:
2条回答
  • 2021-02-01 02:35

    I don't think there's anything stopping you from putting something like:

    http://github.com/pkrumins/lulzbot/commit/4c1b1ea95b379805e3b595b511a89affc6811145

    Right in your commit message. While this doesn't link directly to the git object's version of the commit... it leads to a page showing that commit.

    Format is github.com/User/Repo/commit/hashtag

    0 讨论(0)
  • 2021-02-01 02:49

    I was searching for something like this myself. Found it on:

    https://help.github.com/articles/autolinked-references-and-urls/#commit-shas

    <<username>>/<<repo>>@<<commitHash>>
    

    Without the angle brackets of course :)

    0 讨论(0)
提交回复
热议问题