2022 年如何将 Visual Studio 2017 连接到 BitBucket?

发布于 2025-01-14 00:41:32 字数 1700 浏览 4 评论 0原文

我使用 Visual Studio 2017 连接到 BitBucket。 VS 由 IT 部门设立已有多年。我所做的就是从 Visual Studio 内部推/拉/取。今天,我开始出现错误。我记得看到过一些关于 BitBucket 不再接受密码的信息。我整个早上都在谷歌搜索,但无法让它发挥作用。我尝试设置应用程序密码并使用它登录,但该密码不被接受。我尝试将新版本的 Bitbucket Extension 下载到 VS,但这也无法让我登录。如果我使用 Git Bash,我发现了一些 ssh 密钥的提及,但我不确定这与 VS 有何关系。有人可以引导我完成 VS 设置以再次与 Bitbucket 一起使用吗?

这是当我尝试将更改推送到 VS 中的 BitBucket 时出现的错误:

Opening repositories:
C:\Users\xxxx\source\repos\nfsshopfloor
Error: cannot spawn /C/Program Files (x86)/Microsoft Visual     Studio/2017/Professional/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw32/libexec/git-core/git-askpass.exe: No such file or directory
Error encountered while pushing branch to the remote repository: Git failed with a fatal error.
could not read Password for 'https://[email protected]': terminal prompts disabled

Pushing to https://[电子邮件受保护]/xxxx/xxxx.git

这里是我在 VS 中点击 Push: 输入图片此处描述

以下是我安装 Bitbucket 扩展后在 VS 中的“连接”选项下看到的内容: 输入图片此处描述

当我单击登录时,当我尝试使用 Bitbucket 登录名登录时,我会看到以下屏幕。我已尝试过常规 Bitbucket 密码和我创建的新应用程序密码。

输入图片此处描述

I use Visual Studio 2017 to connect to BitBucket. VS has been set up by IT for years. All I do is push/pull/fetch from inside Visual Studio. Today, I started getting errors. I remember seeing something about BitBucket not accepting passwords anymore. I've been Googling all morning, but can't get it to work. I've tried setting up an App Password and using it to login, but that password isn't accepted. I tried downloading a new version of Bitbucket Extension to VS, but that also won't take my login. I've found some mentions of ssh keys if I was using Git Bash, but I'm not sure how that relates to VS. Can someone walk me through getting VS setup to work with Bitbucket again?

Here's the error I get when I try to push my changes to BitBucket in VS:

Opening repositories:
C:\Users\xxxx\source\repos\nfsshopfloor
Error: cannot spawn /C/Program Files (x86)/Microsoft Visual     Studio/2017/Professional/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw32/libexec/git-core/git-askpass.exe: No such file or directory
Error encountered while pushing branch to the remote repository: Git failed with a fatal error.
could not read Password for 'https://[email protected]': terminal prompts disabled

Pushing to https://[email protected]/xxxx/xxxx.git

Here's where I'm clicking Push inside VS:
enter image description here

Here's what I see under the Connect option in VS after I installed the Bitbucket Extension:
enter image description here

When I click in login, I see the following screen when I try to login using my Bitbucket login. I've tried both my regular Bitbucket password and a new app password I created.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文