美文网首页
fatal: could not read Username f

fatal: could not read Username f

作者: 咚咚蹡蹡 | 来源:发表于2022-06-29 17:25 被阅读0次

换了新电脑,重新clone了工程,提交git时报如下错误,这什么鸟玩意?解决方案在下面。

Invocation failed Unexpected end of file from server

java.lang.RuntimeException: Invocation failed Unexpected end of file from server

at git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:30)

at 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(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 git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:27)

... 1 more

error: unable to read askpass response from 'C:\Users\gaoweidong\AppData\Local\Google\AndroidStudio2021.2\tmp\intellij-git-askpass-local.sh'

bash: /dev/tty: No such device or address

error: failed to execute prompt script (exit code 1)

fatal: could not read Username for 'https://gitee.com': No such file or directory

解决方案:


gitee.com/test/test.git

git>>>Manage Remotes

将username:password@加入到clone地址中

https://username:password@gitee.com/test/test.git

相关文章

网友评论

      本文标题:fatal: could not read Username f

      本文链接:https://www.haomeiwen.com/subject/eofxbrtx.html