Filter git diff by type of change

后端 未结 5 1382
醉梦人生
醉梦人生 2020-11-28 01:36

Is there a way to limit git diff to changed files?

I\'d like to see the differences between two commits, but exclude paths that don\'t exist in one or t

5条回答
  •  执笔经年
    2020-11-28 02:12

    You can use the --diff-filter flag to do precisely this. git diff --diff-filter=CMRTUXB master.. should show everything except added/deleted files.

提交回复
热议问题