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.
我想查看特定文件的旧提交之间的所有差异。它的命令应该是什么?
这显示了您对和/path/to/file之间的文件的更改:commit1commit2
/path/to/file
commit1
commit2
git diff <commit1_hash> <commit2_hash> -- /path/to/file
如果要查看特定文件的更改历史记录:
git log --follow -p path/to/file