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

后端 未结 8 775
不思量自难忘°
不思量自难忘° 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 17:03

    This does what you want, I think:

    git log --all --pretty=format: --name-only --diff-filter=D | sort -u
    

    ... which I've just taken more-or-less directly from this other answer.

提交回复
热议问题