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 上执行此操作,但一直收到超时错误。
我想在单次提交之前使用 git blame 来获取更改和提交。
在 GitHub 上,我试图让我们 git blame 找到一个我感兴趣的更改,获取更改的提交,并在该提交之前获得 git blame on commit。
我想要这个的原因是对特定文件的最后一次更改是重构,我想知道添加之前的行是什么时候。
git blame have--reverse但根据man我需要使用 2 个修订版,我想要一个并从头开始。
--reverse
man
我不确定 Web 界面是这里的最佳选择,尤其是在您遇到超时的情况下。我要做的是首先在本地克隆存储库。然后在重构之前检查提交,并使用 git blame 或仅检查文件的内容以查看重构过程之前的内容。你可以使用你最喜欢的 git 工具(超时不是问题)。