当前位置: 代码迷 >> 综合 >> fatal:not a git repository (or any of the parent directories):.git
  详细解决方案

fatal:not a git repository (or any of the parent directories):.git

热度:99   发布时间:2023-12-16 01:57:24.0

在执行如下命令时出现了错误:

git  branch  wyh
fatal:not a git repository (or any of the parent directories):.git

解决办法:

git init

然后就会出现Initialized......

然后就可以重新执行git branch wyh了。

  相关解决方案