当前位置:   article > 正文

Git----错误收集及解决_fatal: 'chensp16' does not appear to be a git repo

fatal: 'chensp16' does not appear to be a git repository

1. git pull 更新报错

fatal: ‘xxx’ does not appear to be a git repository fatal: Could not read from remote repository

解决方式:
1 检查远程关联 git remote -v
$ git remote -v
origin xxx (fetch)
origin xxx (push)
2 移除远程的origin
$ git remote rm origin
3 重新添加远程origin
$ git remote add origin git@xxxxx .git(这里是项目的远程git地址)
4 再次查看远程关联
$ git remote -v
origin git@xxxxx(fetch)
origin git@xxxxx(push)
如果到了这一步问题就解决了 可以使用git pull 了

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

闽ICP备14008679号