git diff

git add する前に変更点を見る

git diff

git add する前に変更した箇所とインデックスとの変更点が見たいときはこのコマンドです。

git diff >ファイル名.diff

git add する前に変更した箇所の差分をファイルに出力するコマンドです