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.
時々、さまざまなコミットで特定のファイルの変更を確認する必要があります。ファイルをリセットしてチェックアウトし、別の一時ファイルに名前を変更することなく、これを行う簡単な方法はありますか?
たとえば、試してみてください
git diff 278d8..1cf1d www/index.html
2 つの 16 進コードはそれぞれ、コミットを識別する SHA1 ハッシュの一意のプレフィックスです。
で相違点を参照することも役立つ場合がありますがgitk、これは隣接するコミット間の相違点のみを示しています。
gitk