硬删除git上的文件,有些大文件不小心传到gitlab上,虽然加了.gitignore但git pull的时候还是会有
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch 你的文件' --prune-empty --tag-name-filter cat -- --all
删除耗时较久,需要等一下
硬删除git上的文件,有些大文件不小心传到gitlab上,虽然加了.gitignore但git pull的时候还是会有
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch 你的文件' --prune-empty --tag-name-filter cat -- --all
删除耗时较久,需要等一下