🌿File too big to upload to GitHub
remote: error: File video.mp4 is 150.00 MB; this exceeds GitHub's file size limit of 100.00 MB
GitHub doesn't accept files over 100MB. A big file is in a commit, so it was turned away.
🤔 Why does it happen?
- Video or data files were put inside the project and committed
- node_modules or build output was committed too
🔧 Try this
- Upload big files to file storage instead of the repository
- Add node_modules, the build folder, and big files to .gitignore
- Big files already committed have to be removed from the history, so ask the AI how
🤖 Ask your AI like this
I get a '100MB file limit' error when I run git push. Please tell me how to safely remove the big file from the commit history, and how to set up .gitignore. [Paste the full error here]
Replace the [ ] parts with your own situation, and paste the error with a few extra lines before and after it.
Related terms
Other errors in this group
- Push rejected
failed to push some refs (rejected) - Merge conflict
CONFLICT (content): Merge conflict - GitHub authentication failed
Permission denied (publickey) - Not a git repository
fatal: not a git repository - Can't combine two different histories
fatal: refusing to merge unrelated histories - Push blocked because it contains a secret key
Push cannot contain secrets (GH013)