如何处理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

推荐阅读更多精彩内容