当根目录下没有.git文件夹时使用git命令报错:does not have a commit checked out
原因:可能是子目录下仍然有.git文件;我们只需要删除子目录下的.git文件夹即可。
error: ‘hm-dianping/‘ does not have a commit checked out
最新推荐文章于 2025-07-16 21:09:14 发布
当根目录下没有.git文件夹时使用git命令报错:does not have a commit checked out
原因:可能是子目录下仍然有.git文件;我们只需要删除子目录下的.git文件夹即可。