logo A− A+
运维备忘录

运维备忘录

作者:陈安廉
摘要:软件开发进阶系列

git 彻底删除文件

https://www.lmlphp.com/user/57790/article/item/615501/




git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch src/main/resources/application-prod.properties' --prune-empty --tag-name-filter cat -- --all


git filter-branch --force --index-filter 'git rm --cached -r --ignore-unmatch doc' --prune-empty --tag-name-filter cat -- --all



git push origin master --force --all


git push origin master --force