Wednesday, 27 April 2016
Github arge file error: remote: error: File xx is 275.89 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File xx is 275.89 MB; this exceeds GitHub's file size limit of 100.00 MB
If you see this error when you do git push to github, that means you have large files in your repo, you have to delete them.
However, after you deleted git still not allow you to push.
1, first, add large files into .gitignore file, then we can keep them locally.
find . -size +100M | cat >> .gitignore
2, you need run below command to let git forget your large files:
git rm --cached giant_file
if you file is something like this : movi/peter is M&S fullstack coder.avi, then you should run:
git rm --cached "movi/peter is M&S fullstack coder.avi"
3, run this:
git commit --amend -CHEAD
4, push again: