YZH-自动化问题fatal: Not a git repository (or any of the parent directories): .git
作者:互联网
YZH-自动化问题-fatal: Not a git repository (or any of the parent directories): .git
问题是不能切换分支
在终端处输入git branch,出现这个问题:fatal: Not a git repository (or any of the parent directories): .git
解决办法:输入git init,按照图片所示,出现下面的结果,然后再次输入git branch验证下,左下角的master分支出现,代表可以切换分支
标签:git,parent,repository,directories,fatal,any 来源: https://blog.csdn.net/lq18804095672/article/details/120922079