Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save robinvanemden/8479642308b99e8f553d00d32f156684 to your computer and use it in GitHub Desktop.
Save robinvanemden/8479642308b99e8f553d00d32f156684 to your computer and use it in GitHub Desktop.
Recursively remove .git folders
( find . -type d -name ".git" && find . -name ".gitignore" && find . -name ".gitmodules" ) | xargs rm -rf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment