remove all .git files and directories use one command

find . -type d -name ".git" | xargs rm -rf

原文地址:https://www.cnblogs.com/kylindai/p/5848545.html