美文网首页
如何处理gitHub上Push的100M限制

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

作者: Style_伟 | 来源:发表于2016-12-04 18:33 被阅读532次

    最近遇到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

    相关文章

      网友评论

          本文标题:如何处理gitHub上Push的100M限制

          本文链接:https://www.haomeiwen.com/subject/ycmhmttx.html