实测有效:
原因:
缺少用户认证信息。
解决办法:
在 .git 的 config 配置文件中的请求串中加入用户身份的认证信息。
https://[userName]:[password]@github.com/[username]/project.git
例如:
[remote "origin"]
url = http://wangshzh:11111111@gitlab.qdum.com/zhangyb/dmavip.git
fetch = +refs/heads/*:refs/remotes/origin/*
转至:unable to read askpass response from 'C:\Users\..\..\intellij-git-askpass.bat' failed to execute prompt script (exit code 1) could not read Username - unique1319 - 博客园
解决Git缺少用户认证信息问题
当遇到Git无法读取用户认证信息时,可以通过编辑.git/config文件,在远程仓库URL中添加用户和密码信息,例如:[remote origin] url = http://[userName]:[password]@github.com/[username]/project.git。此方法适用于手动修复Git认证问题。
936

被折叠的 条评论
为什么被折叠?



