您好,欢迎访问一九零五行业门户网

git上传遇到 GitHub could not read Username 的解决办法

gitversion 1.8.5.2
执行git push命令异常,如下:
1 push failed 2 failed with error: unable to read askpass response from 'c:\users\eddy\.webstorm2017.1\system\tmp\intellij-git-askpass.bat' 3 failed to execute prompt script (exit code 1) 4 could not read username for 'http://gitlab.qdum.com': no error
原因
.git文件下 config文件中没有用户身份信息
解决
在请求串中加入身份信息即可,格式为:
https://[username]:[password]@github.com/[username]/project.git
修改后
1 [remote "origin"] 2 url = 3 fetch = +refs/heads/*:refs/remotes/origin/*
注:1111111代表密码,此处为示例
以上就是git上传遇到 github could not read username 的解决办法 的详细内容。
其它类似信息

推荐信息