50Mb push 警告 [plain] view plain copy remote: warning: Large files detected. # remote: warning: File big_file is 55.00 MB; this is larger than GitHub's recommended maximum file size of 50 MB 100Mb push 限制 [plain] view plain copy remote: warning: Large files detected. # remote: error: File giant_file is 123.00 MB; this exceeds GitHub's file size limit of 100 MB 移除大文件,注意备份。 [plain] view plain copy $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