LoginSignup
1
0

More than 1 year has passed since last update.

Git コミット差分も含めて歴史を確認する

Posted at

概要

  • git logだけだとコミットの概要の歴史しか知ることが出来ない。コミットでの修正内容も合わせて確認する場合の方法をまとめる。

方法

  • $ git showコマンドを使う。特にオブションや引数を指定しない場合、今のブランチの歴史を差分込で表示してくれる。

    git show
    
  • 下記の様にコミットIDを指定することで特定のコミットの概要と差分を確認する事ができる。

    git show コミットID
    

参考文献

  • $ git show --helpの出力内容を元に本記事を記載
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0