1.在需要移除的文件夹下打开Git Bash
2.在命令行中输入如下语句
find . -name ".git" | xargs rm -Rf
如何移除本地文件夹与Git的连接
原文:https://www.cnblogs.com/panchangde/p/12659692.html