github push时出现this exceeds GitHub's file size limit的解决办法

最近在上传一个项目到github时一直提示File images.zip is 424.43 MB; this exceeds GitHub’s file size limit of 100.00 MB

原来是因为我的仓库里有一个zip文件424MB超过了github的100MB大小限制

解决方法很简单,运行如下命令即可

git filter-branch --tree-filter 'rm -rf path/to/your/file' HEAD

把以上命令中的path/to/your/file 替换成出现问题的文件

最后再push

git push

如你喜欢以上内容,可以关注微信公众号:Robert的书签

猜你喜欢

转载自blog.csdn.net/zengjianze/article/details/105594589