LoginSignup
1
1

More than 5 years have passed since last update.

git diff で、リリース間のコード差分量だけを確認する

Posted at

git diff --shortstat を使用すると、コードの具体的な差分を表示せず、

  1. 変更があったファイルの総数
  2. 追加された行数
  3. 削除された行数

のみを表示することができます。
(出力例: 1 file changed, 1 insertion(+), 1 deletion(-))

例えば prev_release としてタグ付けされたバージョンから、今までの差分を確認する場合は、以下のようにできます。

git diff --shortstat prev_release
1
1
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
1