1.4 KiB
1.4 KiB
title, type, permalink, tags
| title | type | permalink | tags | |||
|---|---|---|---|---|---|---|
| fix-github-push-large-binary | note | dotfiles/plans/fix-github-push-large-binary |
|
Fix GitHub Push Rejection for Large Binary
Goal: Remove the oversized .local/bin/codebase-memory-mcp blob from local-only history so main can push to GitHub successfully.
Root cause
- [decision] Commit
969140eadded.local/bin/codebase-memory-mcpat ~143.51 MB. - [decision] Commit
2643a0alater removed the file, but the blob still exists in local history, so GitHub rejects the push.
Tasks
- Rewrite the 4 local-only commits by soft-resetting to
origin/main. - Recreate a clean commit set without the large binary in history.
- Verify no large-file path remains in reachable history.
- Retry
git pushand confirm success.
Acceptance criteria
- No reachable commit from
HEADcontains.local/bin/codebase-memory-mcp. git pushtoorigin/mainsucceeds without GitHub large-file rejection.
Pre-mortem
- Most likely failure: recommit accidentally stages a regenerated large binary again.
- Fragile assumption: current worktree is clean except for the 4 local-only commits.
- Red flag requiring redesign: if the large blob exists in earlier shared history, a broader history rewrite would be required.
- Easy-to-miss regression: leaving
.local/bin/codebase-memory-mcpunignored so it gets re-added later.