1

当引用 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

使用比较功能时,您可以轻松使用任何类型的 git respec,例如:

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

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

如果这种部落知识记录在他们的帮助页面上的任何地方,我还没有找到它。据我所知,Github 的网址同时是网络上设计最好的网址,也是最差的(公开的?)记录。

4

0 回答 0