Remove .git folders from repository
If you need to clean a local repository from all the .git folders, just use the following command :
find . -name ".git" -type d -exec rm -rf {} \;
Written by Romain Vigo Benia
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#