站点图标 久久日记本

从所有提交中删除一个文件

从所有的Git提交中删除一个文件

$ git filter-branch --tree-filter 'rm -f passwords.txt' HEAD

from here

退出移动版