Skip to content

Instantly share code, notes, and snippets.

@zackdever
Created July 17, 2012 04:22
Show Gist options
  • Save zackdever/3127094 to your computer and use it in GitHub Desktop.
Save zackdever/3127094 to your computer and use it in GitHub Desktop.
git filter-branch usage
# credit: http://stackoverflow.com/a/7849648/962091
git filter-branch --index-filter "git rm -r -f --cached --ignore-unmatch unwanted-dir/*" --prune-empty -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment