且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我如何导航到Github存储库中最早的提交?

更新时间:2023-09-28 23:40:28

克隆存储库,使用命令行打开并运行 $ git log --reverse



这将以相反顺序显示提交。



然后,您可以在github上查看它,一旦您拥有第一次提交的ID(对象名称) ...就像... https://github.com/UserName/Repo/commit/6a5ace7b941120db5d2d50af6321770ddad4779e


In GitHub, is there an easy way to navigate to the earliest commit of a large open source project?

The project has over 13,000 commits as of today. I don't want to have to press the "Older" button on the commit history page hundreds and hundreds of times to get to the initial commit (or first commit).

Clone the repository, open with the command line and run $ git log --reverse

This will show the commits in reverse order.

Then you can view it on github once you have the ID(Object Name) of the first commit ... something like... https://github.com/UserName/Repo/commit/6a5ace7b941120db5d2d50af6321770ddad4779e