github中的交叉引用提交 [英] Cross-referencing commits in github

查看:73
本文介绍了github中的交叉引用提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的主存储库的github问题中引用其他存储库(在本例中为子模块)中的提交.是否可以这样做而不用像github如何从提交号创建缩短的超链接的方式键入完整的超链接?

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?

推荐答案

答案,因此我们懒惰的人可以找到它而无需点击自动链接的引用和URL"部分:

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

例如:

mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2

短SHA也可以工作(只要它们是唯一的):

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

mojombo/god@be6a8cc

这篇关于github中的交叉引用提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆