Jef*_*eff 6 git bitbucket visual-studio
我在 Bitbucket 上有一个存储库,我刚刚安装了 VS2022,我克隆了我的存储库并获得了无效的凭据,但操作正常
我检查存储库并查看提交
这是我在输出窗口中看到的
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.
Run Code Online (Sandbox Code Playgroud)
我下载了最新的 Git-Credential-Manager (1.20),VS 安装程序选择了适用于 Windows 的 Git。
有什么线索吗?
我知道这可能与您的问题没有直接关系,但从 2022 年 3 月 1 日起相关。Bitbucket不再支持通过 HTTPS 的 Atlassian 帐户凭据。这是官方公告。
这意味着,如果您想继续通过 HTTPS 使用 git(在 Visual Studio 或任何 IDE 中),那么您需要使用他们的应用程序密码实用程序。
您可以从Bitbucket 中的个人设置页面设置应用程序密码。设置完所有权限和标签(您可以命名任何名称)后,您将获得一个密码。您需要将该密码添加到您的 Bitbucket 凭据中。
如果您使用的是 Windows,则可以通过“凭据管理器”窗口来完成
那么你应该已经准备好了!
归档时间: |
|
查看次数: |
1394 次 |
最近记录: |