Github 修正上传时“this exceeds GitHub’s file size limit of 100 MB”错误

时间:2023-02-13 07:50:35

Github只允许上传最大100MB的文件,如果超过,则会被server reject

则需:


git filter-branch --force --index-filter "git rm --cached --ignore-unmatch Project1/Project1.1\ Sample\ Project/output.txt"  --prune-empty --tag-name-filter cat -- --all

git commit --amend -CHEAD

git push origin master


注意要在.git文件夹目录下执行以上命令


http://www.walbrix.com/jp/blog/2013-10-github-large-files.html