如何处理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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容