如何制作refspec样式的github提交网址?

时间:2012-12-24 07:47:15

标签: url github

在github上引用提交历史记录时,你可以使用某些版本的git refspec,例如:

https://github.com/johan/kilobyte-svg-challenge/commits/         = default branch
https://github.com/johan/kilobyte-svg-challenge/commits/gh-pages = gh-pages branch or tag
https://github.com/johan/kilobyte-svg-challenge/commits/7aafe0de9edf3f67b7f73e9ebab47ff9f2309415
https://github.com/johan/kilobyte-svg-challenge/commits/?author=duopixel

使用比较功能时,您可以使用any type of git respec just as easily,例如:

https://github.com/johan/kilobyte-svg-challenge/compare/gh-pages~1...gh-pages
https://github.com/johan/kilobyte-svg-challenge/compare/gh-pages@{1.month.ago}...gh-pages

是否有类似的规定来制作时间/计数相对提交网址,如果是,那么网址的语法是什么样的?

如果在帮助页面的任何地方都记录了这种部落知识,我还没有找到它。 Github的网址同时也是网上设计最好的网址之一,也是最糟糕的(公开?)文档,我能说得最好。

0 个答案:

没有答案