3
GIt 清除历史已提交文件、永久删除文件
source link: https://surest.cn/archives/169/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
step 1
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch filename" --prune-empty --tag-name-filter cat -- --all
step2
rm -rf .git/refs/original && git reflog expire --expire=now --all
git gc --prune=now
step 3
git push --force
https://blog.csdn.net/fcymk2/article/details/86551840
本文由 邓尘锋 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: Apr 27, 2021 at 02:11 pm
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK