git:如何列出当前分支中曾经存在的所有文件?
即使你不知道具体文件名,这对于清理敏感数据也很有用:
git_list_all_files.sh
git log --pretty=format: --name-only --diff-filter=A | sort -u原始来源:StackOverflow 上的 Dustin
Check out similar posts by category:
Git
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow