avatar
文章
12
标签
1
分类
0

桔子小鱼の小破站

git: does not have a commit checked out

发表于2024-06-12|更新于2024-06-18
|阅读量:

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

参考:https://blog.csdn.net/weixin_47503016/article/details/111713147

文章作者: sstutu
文章链接: https://blog.sstutu.net/2024/06/12/git-does-not-have-a-commit-checked-out/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 桔子小鱼の小破站!
下一篇
docker技巧
avatar
sstutu
桔子和小鱼..hi
文章
12
标签
1
分类
0
Follow Me
公告
This is my Blog
最新文章
git: does not have a commit checked out2024-06-12
docker技巧2024-06-10
浏览器ERR_UNSAFE_PORT2024-05-27
linux用户设置默认shell2024-05-19
mysql的coalesce函数2024-05-09
©2020 - 2024 By sstutu
框架 Hexo|主题 Butterfly