Gitversion 1.8.5.2 執行git push命令異常,如下: 原因 .git文件下 config文件中沒有用戶身份信息 解決 在請求串中加入身份信息即可,格式為: 修改後 註:1111111代表密碼,此處為示例 ...
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 = http://wangshzh:[email protected]/zhangyb/dmavip.git 3 fetch = +refs/heads/*:refs/remotes/origin/*
註:1111111代表密碼,此處為示例