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分支出现,代表可以切换分支
相关文章
- 12-11WIN8下git报错解决,fatal: Not a git repository (or any of the parent directories): .git
- 12-11fatal: Not a git repository (or any of the parent directories): .git
- 12-11YZH-自动化问题fatal: Not a git repository (or any of the parent directories): .git
- 12-11添加 git 源地址时出现fatal: not a git repository (or any of the parent directories): .git