Skip to content

Instantly share code, notes, and snippets.

@marcelosantos
Created January 16, 2017 13:00
Show Gist options
  • Save marcelosantos/3fe11e0dd377c768a5f697bcaea8a939 to your computer and use it in GitHub Desktop.
Save marcelosantos/3fe11e0dd377c768a5f697bcaea8a939 to your computer and use it in GitHub Desktop.
git: recursively remove all files from a repo
Recursively remove all files of filetype .foo from the repo:
git filter-branch --tree-filter 'git rm -r -f --ignore-unmatch *.foo' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment