我已经克隆了一个现有的git仓库。在命令行中使用pull命令时,Git工作正常。然而,当我尝试从Intellij中进行相同操作时,它显示:
VCS控制台日志显示:
Fetch failed. Fatal : Could not read from remote repository.
VCS控制台日志显示:
git fetch --progress --prune origin
java.lang.RuntimeException: Invocation failed Server returned invalid Response.
at org.jetbrains.git4idea.ssh.GitSSHXmlRpcClient.askPassword(GitSSHXmlRpcClient.java:176)
at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:265)
at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:157)
at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:137)
Caused by: java.io.IOException: Server returned invalid Response.
at org.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(LiteXmlRpcTransport.java:243)
at org.apache.xmlrpc.LiteXmlRpcTransport.sendXmlRpc(LiteXmlRpcTransport.java:90)
at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
at org.jetbrains.git4idea.ssh.GitSSHXmlRpcClient.askPassword(GitSSHXmlRpcClient.java:170)
... 3 more
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我正在使用SSH密钥对进行身份验证。对此的任何帮助都将不胜感激。
git
时,它知道SSH密钥所在的目录(或者只是调用ssh
来获取密钥)。内置的SSH工具不知道你的密钥在哪里。 - saiarcot895