Skip to content

Instantly share code, notes, and snippets.

@stowball
Created May 27, 2014 22:35
Show Gist options
  • Select an option

  • Save stowball/58057013cf184df2aeff to your computer and use it in GitHub Desktop.

Select an option

Save stowball/58057013cf184df2aeff to your computer and use it in GitHub Desktop.
How to delete a folder and all its revisions
git filter-branch --force --index-filter 'git rm -r --cached --ignore-unmatch FOLDER_NAME' --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