Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法通过 github 上的提交历史向前和向后导航?
我想要类似于 Trac 的东西,如果我点击修订日志中的特定变更集,就会有 Next Change 和 Previous Change 的链接。
GitHub 上的大多数页面都支持键盘快捷键。要查看快捷方式,只需按下?任何 GitHub 页面。
?
因此,如果您正在查看特定提交,您将看到几个可用的键盘快捷键(在 下Browsing Commits),包括:pfor parent commit。因此,当您进行特定的提交时,按p,您将被带到上一个(父)提交。不幸的是,我没有看到导航到下一个(子)提交的快捷方式。
Browsing Commits
p
parent commit
另请注意,所有提交页面在页面顶部附近都有指向父提交的链接(查找带有短 SHA 的 txt“1 parent”,这将是指向父提交的链接)。