Skip to content

Instantly share code, notes, and snippets.

@ronlobo
Created February 25, 2015 06:55
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 ronlobo/3a70be48da44c92b07f1 to your computer and use it in GitHub Desktop.
Save ronlobo/3a70be48da44c92b07f1 to your computer and use it in GitHub Desktop.
when git rm --cached -r doesn't work
git filter-branch --force --index-filter \
'git rm -r --cached --ignore-unmatch $1' \
--prune-empty --tag-name-filter cat -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment