Created
January 16, 2017 13:00
-
-
Save marcelosantos/3fe11e0dd377c768a5f697bcaea8a939 to your computer and use it in GitHub Desktop.
git: recursively remove all files from a repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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