git: does not have a commit checked out

当根目录下没有.git文件夹时使用git命令报错:does not have a commit checked out
原因:可能是子目录下仍然有.git文件;我们只需要删除子目录下的.git文件夹即可。

你可能感兴趣的:(git)