[git push时报错fatal: Could not read from remote repository

后来发现,出现这个问题是因为仓库地址不对

使用如下命令先查看一下:

$ git remote -v

[git push时报错fatal: Could not read from remote repository

发现跟github的地址不一致

[git push时报错fatal: Could not read from remote repository

然后在终端输入:git remote set-url origin XXX

[git push时报错fatal: Could not read from remote repository

然后重新push就可以了

相关文章:

  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-09
  • 2021-08-24
猜你喜欢
  • 2021-07-06
  • 2021-12-05
  • 2021-04-27
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
相关资源
相似解决方案