Git Ready
コミットの内容を見る - git show の使い方・オプション・サンプル

コミットの内容を見る- git show

コミットの詳細情報と差分を表示します。

概念図

git show diagram

構文

bash
git show [options] [<object>...]

使用例

最新コミットの詳細を表示

bash
git show

指定コミットの詳細を表示

bash
git show abc1234

特定ファイルの内容を表示

bash
git show HEAD:path/to/file

統計情報のみ表示

bash
git show --stat

関連コマンド