当前位置:   article > 正文

完美解决 git 报错fatal: Not a git repository (or any of the parent directories): .git_-- git found: /usr/bin/git -- not a git repo

-- git found: /usr/bin/git -- not a git repo

问题描述

错误提示是找不到.git文件,无法执行git指令,意思是 当前你要提交的文件夹中没有.git这个文件

解决方案

执行如下命令:

git init
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/498751
推荐阅读
相关标签
  

闽ICP备14008679号