2022 年如何将 Visual Studio 2017 连接到 BitBucket?
我使用 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
以下是我安装 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:
Here's what I see under the Connect option in VS after I installed the Bitbucket Extension:
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论