赞
踩
git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch *.img' \
--prune-empty --tag-name-filter cat -- --all
注:标红的地方可指定删除的文件类型或者文件名称(在删除之前请保证没有未提交修改)
rm -rf .git/refs/original/
git reflog expire --expire=now --all
git gc --prune=now
git gc --aggressive --prune=now
git push origin --force --all(报错有可能是因为有分支为保护状态,可在gitlab中修改被保护分支权限)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。