当前位置:   article > 正文

git错误:fatal: Could not read from remote repository.解决_fatal: could not read from remote repository. plea

fatal: could not read from remote repository. please make sure you have the
(base) [jianming_ge@localhost road_water_yolov5-7.0]$ git pull
Internal API unreachable
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

出现上述错误的原因是:运维将公司一台机子上的git私有仓库迁移至另一台机子上了,导致之前对原先的机子上的代码提交失效,没有权限。
解决步骤:
方法一:通过git命令修改

1、进入项目文件夹,右键鼠标,点击【Git Bash Here】

2、输入命令【git remote -v】查看git远程仓库地址

git remote -v
3、输入命令【git remote set-url origin 新地址】替换成新地址

git remote set-url origin 新地址
4、输入命令【git remote -v 】查看是否更新成功

git remote -v

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

闽ICP备14008679号