Skip to content

Instantly share code, notes, and snippets.

@doublejosh
Created September 3, 2015 21:24
Show Gist options
  • Select an option

  • Save doublejosh/8ae7ef9a684c8fcd5332 to your computer and use it in GitHub Desktop.

Select an option

Save doublejosh/8ae7ef9a684c8fcd5332 to your computer and use it in GitHub Desktop.
Remove .git folders in folders within current
(find . -type d -name ".git") | xargs rm -rf
@doublejosh

Copy link
Copy Markdown
Author

Be sure to move into a sub-folder within your project root before running this or you will kill off your main project history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment