10:59 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.
路径File->Settings
1、每次commit、push之前先进行pull操作
2、这里将Connection timeout 时间设置为30s或者更长(默认为5s,但是国内连接git是将一般都比较长,所以导致提交的时候经常超时而报错)。
即使完成上述修改,仍回出现提交失败的情况
还是推荐使用token,而非账号密码
1、在github上生成token(在选择权限的时候,如果时个人用的话就把所有权限都打勾吧)
2、还是设置github账号的位置,将原有账号删除,添加账号的时候输入生成的token