Intellij IDEA使用git往github push时报错

Intellij IDEA使用git往github push时报错 Push failed: Failed with error: fatal: Could not read from remote repository

​ 今天在使用 Intellij IDEA提交代码时报错 提示 Push failed: Failed with error: fatal: Could not read from remote repository。之前使用的时候还是好的不知道今天为啥就报错了。

# 2018/2/24
# 17:09 Platform and Plugin Updates: IntelliJ IDEA is ready to update.
# 17:11 Push failed: Failed with error: fatal: Could not read from remote repository.

​ 从网上查找后发现是IDEA设置的问题。具体的解决办法是,在IntelliJ IDea 设置(setting)窗口,找到git,将ssh executable项设置为native。

Intellij IDEA使用git往github push时报错_第1张图片
设置完成后再次进行push操作就可以了。

# 2018/2/24
# 17:09 Platform and Plugin Updates: IntelliJ IDEA is ready to update.
# 17:11 Push failed: Failed with error: fatal: Could not read from remote repository.
# 17:16 Push successful: Pushed 2 commits to origin/master

参考
IntelliJ IDEA使用Git时Fetch失败

你可能感兴趣的:(git)