error: File: XXX XXX MB, exceeds 100.00 MB.
- 提交的文件中有超过100MB导致出错
remote: Powered by GITEE.COM [GNK-6.4]
remote: error: File: 51237645d622455060faa0fbcd1b6074f192d673 116.58 MB, exceeds 100.00 MB.
remote: Use command below to see the filename:
remote: git rev-list --objects --all | grep 51237645d622455060faa0fbcd1b6074f192d673
remote: Please remove the file from history and try again. (https://gitee.com/help/articles/4232)
- 解决办法
1.按照提示找到那个文件(可能是打包的项目文件,所以在提交git时clean一下)
git rev-list --objects --all | grep 51237645d622455060faa0fbcd1b6074f192d673
2.执行命令忽略掉超大的文件
git rm --cached 文件名
#如果是文件夹
git rm -r --cached 文件夹名
3.将要忽略的文件名添加到.gitignore中
4.然后执行add 和 commit
git add .
#这里的命令是用原来的信息再重新提交一次
git commit --amend -CHEAD
5.在提交历史里面删除问题文件