无法使用 VS Team Explorer(Bitbucket git)拉取/获取 [英] Can't Pull/Fetch using VS Team Explorer(Bitbucket git)
问题描述
每当我拉/取或推送时,我的 VS 2017 Team Explorer 中都会出现错误.
I am getting an error in my VS 2017 Team Explorer whenever I pull/fetch or push.
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.
我尝试通过以下方式设置我的密码:
I tried to set my password by indicating:
https://<myusername>:<mypassword>@bitbucket.org
仍然没有修复.但是当我使用SourceTree时,它很好.
Still not fixed. But when I used SourceTree, it is fine.
我该如何解决这个问题,以便能够再次使用 VS Team Explorer 进行拉/推?
How can I fix this so I can able to use VS Team Explorer again for pull/push?
我正在使用以下内容:
- VS 2017 社区 15.7.6
- Git 版本 2.18.0
- 比特桶
提前致谢.
推荐答案
Git for Windows 出现问题,微软正在监控解决方案,以发布带有补丁的新版本 VS.
There is a problem in Git for Windows and Microsoft is monitoring the solution to release a new version of VS with the patch.
-----最后我用这些步骤解决了---------------
----- Finally I resolved with these steps --------------
1) 在凭据管理器中删除凭据
1) delete credentials in the Credential Manager
2)重命名或删除C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer"中的Git目录
2) rename or delete the Git directory in "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer"
3) 安装包https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.17.0"
4) 当 VS 请求 BitBucket 凭据时插入它们
4) when VS asks for the BitBucket credential insert them
只有这些序列对我有用.
Only these sequence worked for me.
这篇关于无法使用 VS Team Explorer(Bitbucket git)拉取/获取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!