How can I list all the deleted files in a Git repository?

后端 未结 8 784
不思量自难忘°
不思量自难忘° 2020-11-30 16:13

I know Git stores information of when files get deleted and I am able to check individual commits to see which files have been removed, but is there a command that would gen

8条回答
  •  醉酒成梦
    2020-11-30 16:50

    Show all deleted files in some_branch

    git diff origin/master...origin/some_branch --name-status | grep ^D
    

    or

    git diff origin/master...origin/some_branch --name-status --diff-filter=D 
    

提交回复
热议问题