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