简体   繁体   English

git:显示旧提交文件的未来

[英]git: show the future of a file from an old commit

I am looking at a particular old commit in a complex repo with loads of commits, I see a file in the commit that isn't in the current HEAD of master. 我正在查看具有大量提交的复杂仓库中的特定旧提交,我在提交中看到一个不在当前HEAD中的文件。

I want to know what happened to that file? 我想知道那个文件发生了什么? Did it get deleted or moved? 它被删除或移动了吗? Were there edits to the file since that commit? 自提交以来是否对文件进行了编辑?

git blame seems to solve the opposite problem. git blame似乎解决了相反的问题。 I want git unblame I guess. 我想我想git unblame

git log -- example.txt将列出所有触及该路径的提交,包括重命名或删除文件的提交。

gitk filename也帮助我成功调查了git中跟踪的文件的生命周期

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM