Skip to content

Instantly share code, notes, and snippets.

@kampfgnu
Created February 27, 2017 14:42
Show Gist options
  • Save kampfgnu/62968c3325bcd26c2160b96301751886 to your computer and use it in GitHub Desktop.
Save kampfgnu/62968c3325bcd26c2160b96301751886 to your computer and use it in GitHub Desktop.
remove already commited large file from git history
git filter-branch --prune-empty --index-filter 'git rm -rf --cached --ignore-unmatch MY-BIG-DIRECTORY-OR-FILE' --tag-name-filter cat -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment