繁体   English   中英

无法使用VS Team Explorer进行拉/取(Bitbucket git)

[英]Can't Pull/Fetch using VS Team Explorer(Bitbucket git)

每当我拉/获取或推送时,我在VS 2017团队资源管理器中收到错误。

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方面。

以下为我们工作:

删除存储在Windows控制面板\\所有控制面板项目\\凭据管理器中的Windows凭据中的与git相关的凭据

在这里链接到SO

然后使用此命令:

git remote set-url origin https://name:password@bitbucket.org/repo.git

是这个的来源

Git for Windows存在问题,Microsoft正在监控解决方案以使用该补丁发布新版本的VS.

https://developercommunity.visualstudio.com/content/problem/266473/sync-commit-git-failed-with-a-fatal-error.html

-----最后我解决了这些步骤--------------

1)删除凭据管理器中的凭据

2)重命名或删除“C:/ Program Files(x86)/ Microsoft Visual Studio / 2017 / Community / Common7 / IDE / CommonExtensions / Microsoft / TeamFoundation / Team Explorer”中的Git目录

3)安装软件包“ https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.17.0

4)当VS要求BitBucket凭证插入它们时

只有这些序列对我有用。

Bitbucket的Authenticator目前正在失败。 有一个未解决的问题。 https://bitbucket.org/site/master/issues/16892/cannot-fetch-or-push-using-visual-studio

如果您可以暂时使用纯用户名:密码格式的风险,它将解决问题。

我现在使用git-credential-store解决了。 我认为这可能是目前最好的方式。 正如我在这里提到的那样。

这是链接,这里是如何使用git-credential-store 如果你想在全球拥有“git credential store”。 您可以使用以下命令:

git config --global credential.helper

实际上,您在本地保存了用户名和密码。 它只会询问您的用户名和密码一次。

否则,您可以使用SSH (它在我的VPN上不起作用)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM