`remote: error: File data/dump.sql is 138.42 MB; this exceeds GitHub's file size limit of 100.00 MB`
IntermediateTroubleshootingPush, Pull and Fetch Errors
Answer
Likely causes → A commit in the push contains a file over 100 MB. Deleting it in a later commit does not help, since the blob is still in the pushed history.
Diagnose →
git rev-list --objects origin/main..HEAD | \
git cat-file --batch-check='%(objectname) %(objectsize) %(rest)' | sort -k2 -n -r | head
git log --oneline -- data/dump.sql
Fix → Remove it from the unpushed commits (git rebase -i, or git filter-repo --path data/dump.sql --invert-paths for older history). Re-add via Git LFS if it must be versioned: git lfs track then git lfs migrate import --include="data/dump.sql".
Prevent → Add the pattern to .gitignore, and use a pre-commit check-added-large-files hook.
More on Push, Pull and Fetch Errors
`! [rejected] main -> main (fetch first)` / `(non-fast-forward)`Beginner`remote: error: GH006: Protected branch update failed for refs/heads/main.`Intermediate`! [rejected] feature -> feature (stale info)` with `--force-with-lease`.Intermediate`You are not currently on a branch.` when running `git pull` or `git push`.Beginner`There is no tracking information for the current branch.` when running `git pull`.Beginner`fatal: The current branch feature has no upstream branch.` on `git push`.Beginner