最近遇到push到gitHub遇到"this exceeds GitHub's file size limit of 100 MB"這個(gè)問題,網(wǎng)上查看后發(fā)現(xiàn)這是gitHub的一個(gè)機(jī)制,我們上傳的庫文件大于50M時(shí),上傳就會(huì)警告,大于100M,就會(huì)直接拒絕,那么如何來解決這個(gè)問題呢,官網(wǎng)上一個(gè)方法:
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