发生的错误:

Push failed: Failed with error: fatal: Could not read from remote repository

Fetch failed: fatal: Could not read from remote repository

因为是用命令行的ssh 的方式clone下来的代码,然后用studio打开后,本地的commit没问题,但是向远成仓库pull和push都出现的这种问题.

问题的原因应该就是ssh key的配置有问题

所以打开Setting->Version Control ->Git 查看SSH executable的选项,看下图:

android studio 用git从远程仓库pull和push发生的错误

我的原来的Native,然后换成Built-in就正常了,但是网上好多都是说应该选择Native这个选项,但是我这不一样,我也不知道为什么了....

相关文章:

  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-16
  • 2021-07-01
  • 2022-12-23
  • 2021-08-18
  • 2021-11-09
  • 2021-11-02
相关资源
相似解决方案