git 删除错误提交commit(删除敏感文件)

git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch test/docs/456776898979.apib' --prune-empty --tag-name-filter cat -- --all
 


关注微信号:xstone-monkey
微信公众号名称:和石头学编程
原文地址:https://www.cnblogs.com/Rmean/p/11989723.html