简体   繁体   中英

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.

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. I want git unblame I guess.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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