在IDEA中使用git進行代碼管理時拜秧,無法將代碼push到github,報錯如下:
版權(quán)聲明:本文為博主原創(chuàng)文章,禁止轉(zhuǎn)載
作者博客:codesong.cn
created: 2020-03-23
Push failed
Invocation failed Server returned invalid Response.
java.lang.RuntimeException: Invocation failed Server returned invalid Response.
at org.jetbrains.git4idea.http.GitAskPassXmlRpcClient.askUsername(GitAskPassXmlRpcClient.java:50)
at org.jetbrains.git4idea.http.GitAskPassApp.main(GitAskPassApp.java:64)
Caused by: java.io.IOException: Server returned invalid Response.
at org.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(LiteXmlRpcTransport.java:242)
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.http.GitAskPassXmlRpcClient.askUsername(GitAskPassXmlRpcClient.java:47)
... 1 more
remote: No anonymous write access.
Authentication failed for 'https://github.com/codeso... (show balloon)
解決方法
重新設(shè)置git的用戶名和郵箱
git config --global user.name "username"
git config --global user.email "email"