您好,欢迎来到二三四教育网。
搜索
您的当前位置:首页如何处理gitHub上Push的100M限制

如何处理gitHub上Push的100M限制

来源:二三四教育网

最近遇到push到gitHub遇到"this exceeds GitHub's file size limit of 100 MB"这个问题,网上查看后发现这是gitHub的一个机制,我们上传的库文件大于50M时,上传就会警告,大于100M,就会直接拒绝,那么如何来解决这个问题呢,官网上一个方法:


git rm --cached giant_file
# Stage our giant file for removal, but leave it on disk

git commit --amend -CHEAD
# Amend the previous commit with your change
# Simply making a new commit won't work, as you need
# to remove the file from the unpushed history as well

git push
# Push our rewritten, smaller commit

QQ20161204-0@2x.png

Copyright © 2019- how234.cn 版权所有 赣ICP备2023008801号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务