git 出现了 Invocation failed Unexpected end of file from server

Posted 切切歆语

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git 出现了 Invocation failed Unexpected end of file from server相关的知识,希望对你有一定的参考价值。

前段时间使用git遇到一个这样的问题 Invocation failed Unexpected end of file from server

错误日志

Git Pull failed
                Invocation failed Unexpected end of file from server
                java.lang.RuntimeException: Invocation failed Unexpected end of file from server
                at org.jetbrains.git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:30)
                at org.jetbrains.git4idea.http.GitAskPassApp.main(GitAskPassApp.java:58)
                Caused by: java.net.SocketException: Unexpected end of file from server
                at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:866)
                at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
                at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:863)
                at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
                at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1615)
                at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
                at org.apache.xmlrpc.DefaultXmlRpcTransport.sendXmlRpc(DefaultXmlRpcTransport.java:87)
                at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClien..
 

解决方案:

设置中搜索“Use credential helper”,选中即可

以上是关于git 出现了 Invocation failed Unexpected end of file from server的主要内容,如果未能解决你的问题,请参考以下文章

git 出现了 Invocation failed Unexpected end of file from server

git 出现了 Invocation failed Unexpected end of file from server

linker command failed with exit code 1 (use -v to see invocation),经典Xcode编译错误的出现和解决!

linker command failed with exit code 1 (use -v to see invocation)

linker command failed with exit code 1 (use -v to see invocation)

linker command failed with exit code 1 (use -v to see invocation)