当前位置:   article > 正文

ERROR: Repository not found. fatal: 无法读取远程仓库。

error: repository not found. fatal: could not read from remote repository.
  1. 解决办法如下:
  2. 1、先输入$ git remote rm origin(删除关联的origin的远程库)
  3. 2、再输入$ git remote add origin git@github.com:(github名)/(git项目名).git 就不会报错了!
  4. 3、如果输入$ git remote rm origin 还是报错的话,error: Could not remove config section ‘remote.origin’. 我们需要修改gitconfig文件的内容
  5. 4、找到你的github的安装路径,找到一个名为gitconfig的文件,打开它把里面的[remote “origin”]那一行删掉就好了!
本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号