You've added another git repository inside your current repository.解决方案shell大法好# cd 到你的根仓库目录,一般也就是你报错的当前 rm -rf .git && git rm --cache . -f 版权声明:本文为neve_give_up_dan原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。原文链接:https://blog.csdn.net/neve_give_up_dan/article/details/103965010