我如何导航到Github存储库中最早的提交? [英] How do I navigate to the earliest commit in a Github repository?

查看:80
本文介绍了我如何导航到Github存储库中最早的提交?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在GitHub中,是否有一种简单的方法可以导航到大型开源项目的最早提交?

截至今天,该项目已经提交了13,000多个提交。我不想在提交历史记录页面上按下较旧按钮数百次和数百次以达到初始提交(或第一次提交)。

解决方案

克隆存储库,使用命令行打开并运行 $ 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

这篇关于我如何导航到Github存储库中最早的提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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