やったこと
git で add した後に差分を確認します
確認環境
$ git --version
git version 2.17.2 (Apple Git-113)
調査
git add した後の状態を確認する
$ git status
On branch test1
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: add.md
差分を確認する
$ git diff --cached
diff --git a/add.md b/add.md
new file mode 100644
index 0000000..bb95160
--- /dev/null
+++ b/add.md
@@ -0,0 +1 @@
+33
おまけ
ヘルプ抜粋
$ git diff --help
git diff [--options] --cached [<commit>] [--] [<path>...]
This form is to view the changes you staged for the next commit relative to the named <commit>