Skip to content

Instantly share code, notes, and snippets.

@samuelbeek
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelbeek/3e6c632f27e069cc4a5e to your computer and use it in GitHub Desktop.
Save samuelbeek/3e6c632f27e069cc4a5e to your computer and use it in GitHub Desktop.
Remove big files from a git repo (your current one or one in the history). Very simple terminal command.
git filter-branch --prune-empty --index-filter 'git rm -rf --cached --ignore-unmatch MY-BIG-DIRECTORY-OR-FILE' --tag-name-filter cat -- --all
@samuelbeek
Copy link
Author

Super easy solution for this frustrating problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment