2013-03-19 45 views

回答

4

這說明你commit1commit2之間更改文件/path/to/file

git diff <commit1_hash> <commit2_hash> -- /path/to/file 
+3

通常,在'git'命令末尾添加' -/path/to/file'就可以在該文件上執行該命令。 – asmeurer 2013-03-19 18:37:57

2

如果你想看到一個特定的文件的更改歷史記錄:

git log --follow -p path/to/file 
相關問題