zoukankan      html  css  js  c++  java
  • github提交失败并报错java.io.IOException: Authentication failed:

    一、概述

    我最近在写一个android的项目。
    软件:android studio、Android studio VCS integration(插件)
    Android studio VCS integration插件:使用此插件结合github进行代码版本管理
    近期出现的问题:
    19:29:47.581: [DailyZHIHU] git -c core.quotepath=false push --progress --porcelain origin refs/heads/master:master
    java.io.IOException: Authentication failed:
    at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:298)
    at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:172)
    at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:137)
    fatal: Could not read from remote repository.
    Please make sure you have the correct access rights
    and the repository exists.
    能够发现,在本地是被提交了的,但是在github上没有提交成功。结果想在本地check changes/commit的时候,却是no changes的。
    截图如下:

    二、解决办法

    1、首先,确保各项设置全部正确(github连接成功、git.exe连接成功)

    2、其次,将SSH executable:Built-in/Native选择成为Native

    关于SSH executable:Built-in/Native的解释:
    Specify the version of SSH to be used with Git.

    • Native means that the native SSH will be used.
    • Built-in means that the implementation provided by Android Studio will be used.

    The native implementation might cause hangups on some platforms. In native case, you also might need to configure ssh-askpass for your platform to receive GUI prompts for passwords.

    三、参考

    https://bitbucket.org/dmitry_cherkas/jetbrains-bitbucket-connector/issues/20/clone-failed-could-not-read-from-remote
    http://www.weixingon.com/s/android+studio+vcs
    http://stackoverflow.com/questions/17211697/android-studio-vcs-integration

  • 相关阅读:
    寒假学习10
    寒假学习9
    寒假学习8
    寒假学期7
    寒假学习6
    寒假学习5
    寒假学习4
    Notification通知栏的使用
    Service的使用
    BroadcastReceive的使用
  • 原文地址:https://www.cnblogs.com/neillee/p/5575835.html
Copyright © 2011-2022 走看看