每当我拉/取或推时,我的 VS 2017 Team Explorer 都会出现错误。
Git failed with a fatal error.
HttpRequestException encountered.
An error occurred while sending the request.
cannot spawn /C/Program Files/Git/mingw64/libexec/git-core/git-askpass.exe: No error
could not read Password for 'https://<myusername>@bitbucket.org': terminal prompts disabled.
我尝试通过指示来设置密码:
https://<myusername>:<mypassword>@bitbucket.org
仍然没有修复。但是当我使用SourceTree时,就很好了。
我该如何解决这个问题,以便我能够再次使用 VS Team Explorer 进行拉/推?
我正在使用以下内容:
- VS 2017社区15.7.6
- Git 版本 2.18.0
- 位桶
提前致谢。
同样在这里,我相信它来自 bitbucket 一侧。
以下对我们有用:
Remove git相关凭据存储在>>控制面板\所有控制面板项\凭据管理器中的 Windows 凭据中
链接到SOhere https://stackoverflow.com/questions/20195304/how-do-i-update-the-password-for-git/20195558
然后使用这个命令:
git remote set-url origin https://name:[email protected] /cdn-cgi/l/email-protection/repo.git
here https://stackoverflow.com/questions/6565357/git-push-requires-username-and-password是这个的来源
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)