Skip to content

Instantly share code, notes, and snippets.

@kharmabum
Created September 22, 2018 17:42
Show Gist options
  • Save kharmabum/72fe79ba55d72ccd59c1c72d2eefb650 to your computer and use it in GitHub Desktop.
Save kharmabum/72fe79ba55d72ccd59c1c72d2eefb650 to your computer and use it in GitHub Desktop.
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