git diff - only show which directories changed

后端 未结 3 1484
礼貌的吻别
礼貌的吻别 2020-12-05 19:51

Is there a way to list only the directories that were changed?

If I\'m at the git root say, ~/project

Files I changed are

~/proje

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 20:27

    Use git diff with parameter --dirstat, e.g.

    git diff --dirstat HEAD~100..HEAD
    

提交回复
热议问题