Git Blob Size Filter Cleanup

Strip oversized blobs from unpushed commits using git filter-branch when GitHub's 100 MB limit blocks push

vamseeachanta 909549a 604 B Updated

File contents

Git Blob Size Filter Cleanup

When a file (e.g., cost-tracking.jsonl) grows beyond 100 MB in unpushed commits and blocks GitHub push, use git filter-branch to strip the oversized blob. Add the file to .gitignore, then run git filter-branch --tree-filter 'rm -f <filepath>' HEAD~N..HEAD to rewrite commits. This is safe only for unpushed commits not yet in origin. After rewriting, commit the .gitignore change and push normally.

vamseeachanta/workspace-hub/tree/main/.agents/skills/workspace-hub/learned/git-blob-size-filter-cleanup commit 909549a33f

Frequently asked questions

npx skillmds@latest add vamseeachanta/git-blob-size-filter-cleanup