解决Successfully created project '***' on GitHub, but initial push failed:Could not read from remote……
众所周知,将IDEA中的工程项目文件托管到GitHub是一件有利于软件开发协作的事情,但是在Share过程中可能会遇到一些小问题,下面便是我踩过的坑。
在使用VCS>>Share Project on GitHub是遇到如下问题:
Can’t finish GitHub sharing process
Successfully created project ‘project_name’ on GitHub, but initial push failed:
java.io.IOException: Authentication failed:
at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:287)
at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:161)
at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:124)
Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决方法:在Settings>>Version Control中去掉勾选的“Clone git repositories using ssh"
随后就可以perfect啦!