git 删除文件 - 包括所有提交历史
# 删除包括历史
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch 文件相对路径' --prune-empty --tag-name-filter cat -- --all
# 同步到远程
git push origin master --force
# 删除包括历史
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch 文件相对路径' --prune-empty --tag-name-filter cat -- --all
# 同步到远程
git push origin master --force
本文标题:git 删除文件 - 包括所有提交历史
本文链接:https://www.haomeiwen.com/subject/aaelqftx.html
网友评论