VS 2022 Bitbucket 凭据失败
VS 2022 Bitbucket credential failed
我在 Bitbucket 上有一个仓库
我刚刚安装了VS2022
我克隆了我的存储库并获得了无效的凭据
但是操作有效
我检查 repo 并查看提交
这是我在输出中看到的 window
Pushing master
Error encountered while pushing to the remote repository: Git failed with a fatal error.
Git failed with a fatal error.
Invalid credentials
Invalid credentials
Enumerating objects: 7, done.
Delta compression using up to 8 threads
Compressing objects: 25% (1/4)
Compressing objects: 50% (2/4)
Compressing objects: 75% (3/4)
Compressing objects: 100% (4/4)
Compressing objects: 100% (4/4), done.
我下载了最新的 Git-Credential-Manager (1.20),VS 安装程序为 windows 选择了 Git。
有什么线索吗?
第 1 步: 使用 Windows 中的搜索图标搜索 Windows 凭据管理器(控制面板)10/11
第 2 步:
Windows Credential Screenshot
第 3 步: Select Windows 显示凭据和所有凭据的列表
第 4 步: Select Git 或 Bitbucket 的凭据并编辑它们或完全删除它们
第 5 步: 如果您完全删除凭据,当您尝试使用 Visual Studio 克隆存储库时,它会再次提示授权,然后您可以输入正确的凭据,它将起作用
我试过了,对我有用
我知道这可能与您的问题没有直接关系,但与 2022 年 3 月 1 日及之后相关。 Bitbucket 不再支持 通过 HTTPS 的 Atlassian 帐户凭据。 Here is the official announcement.
这意味着如果您想继续通过 HTTPS 使用 git(在 Visual Studio 或任何 IDE 中),那么您需要使用他们的 App passwords实用程序。
您可以从 Bitbucket 中的个人设置页面设置您的应用密码。设置所有权限和标签(您可以命名任何名称)后,您将获得一个密码。您需要将该密码添加到您的 Bitbucket 凭据中。
如果您使用 Windows,可以通过 Credential Manager window
完成
那么你应该已经准备好了!
我在 Bitbucket 上有一个仓库 我刚刚安装了VS2022 我克隆了我的存储库并获得了无效的凭据 但是操作有效
我检查 repo 并查看提交
这是我在输出中看到的 window
Pushing master
Error encountered while pushing to the remote repository: Git failed with a fatal error.
Git failed with a fatal error.
Invalid credentials
Invalid credentials
Enumerating objects: 7, done.
Delta compression using up to 8 threads
Compressing objects: 25% (1/4)
Compressing objects: 50% (2/4)
Compressing objects: 75% (3/4)
Compressing objects: 100% (4/4)
Compressing objects: 100% (4/4), done.
我下载了最新的 Git-Credential-Manager (1.20),VS 安装程序为 windows 选择了 Git。
有什么线索吗?
第 1 步: 使用 Windows 中的搜索图标搜索 Windows 凭据管理器(控制面板)10/11
第 2 步: Windows Credential Screenshot
第 3 步: Select Windows 显示凭据和所有凭据的列表
第 4 步: Select Git 或 Bitbucket 的凭据并编辑它们或完全删除它们
第 5 步: 如果您完全删除凭据,当您尝试使用 Visual Studio 克隆存储库时,它会再次提示授权,然后您可以输入正确的凭据,它将起作用
我试过了,对我有用
我知道这可能与您的问题没有直接关系,但与 2022 年 3 月 1 日及之后相关。 Bitbucket 不再支持 通过 HTTPS 的 Atlassian 帐户凭据。 Here is the official announcement.
这意味着如果您想继续通过 HTTPS 使用 git(在 Visual Studio 或任何 IDE 中),那么您需要使用他们的 App passwords实用程序。
您可以从 Bitbucket 中的个人设置页面设置您的应用密码。设置所有权限和标签(您可以命名任何名称)后,您将获得一个密码。您需要将该密码添加到您的 Bitbucket 凭据中。
如果您使用 Windows,可以通过 Credential Manager window
完成那么你应该已经准备好了!