- Home
- GitHub
- Errors and problems
- Push rejected for large file
Common problemGitHubGit command line
GitHub rejects a push with a large file
Files over 100 MiB are blocked
The push fails because a commit holds a file that is too big. GitHub blocks files larger than 100 MiB and warns about files over 50 MiB.
Fix it
How to fix it
Remove the big file from the commit with git rm --cached and amend the commit.
If the file is in older commits, remove it from the history before you push again.
Track large files with Git Large File Storage (Git LFS) instead.
Share big binaries through a GitHub release rather than the repository.
From GitHub's help pages: docs.github.com, in our words. Checked on 5 November 2026. If the steps do not help, GitHub's own support is the next stop.
More