如何解决BitBucket中的无效凭据问题?

人气:498 发布:2022-10-16 标签: git bitbucket

问题描述

我的BitBucket密码是正确的,因为我可以使用此密码轻松登录。当我尝试将项目或文件推送到位桶时,它显示无效凭据错误。

$ git push -u origin master
fatal: Invalid credentials
Password for 'https://username@bitbucket.org':
remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://bitbucket.org/username/demo.git/'

如何解决此问题?

推荐答案

转到凭据管理器->窗口凭据->添加通用凭据 把田地填满 网络地址:Git:https://bitbucket.org 用户名: 应用程序密码: 来自Here

的求解器

562