Skip to content

Instantly share code, notes, and snippets.

@yassineaboukir
Created May 31, 2019 15:14
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save yassineaboukir/1d965de5508de283342f198f180b8565 to your computer and use it in GitHub Desktop.
Save yassineaboukir/1d965de5508de283342f198f180b8565 to your computer and use it in GitHub Desktop.
remove .git files recursively
( 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