我的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/'
我怎样才能解决这个问题?
发布于 2022-03-10 13:22:07
2022-03-01之后:
从2022年3月1日开始,您将不再能够在使用Bitbucket Cloud或HTTPS上的Git进行基本身份验证时使用able帐户密码。
关于应用程序密码的更多信息在https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/上。
发布于 2022-03-10 12:40:56
成功地将应用程序密码创建为艾瑟拉夫·艾利芬之后
要在HTTPS上使用Bitbucket "App Password“,您可以导航到终端中特定存储库的路径,然后设置远程源(对于已经克隆的存储库):
git remote set-url origin https://<Bitbucket_Username>:<App_Password>@bitbucket.org/<Bitbucket_Username>/<Repo_Name>.git
一个新的克隆人:
git clone https://<Bitbucket_Username>:<App_Password>@bitbucket.org/<Bitbucket_Username>/<Repo_Name>.git
发布于 2022-03-11 07:30:33
嗯,我的答案只是米克-罗德塞普 和Anish的回答的一个汇编。他们是真正的MVP
为什么会这样?-
从2022年3月1日开始,您将不再能够在使用Bitbucket Cloud或HTTPS上的Git进行基本身份验证时使用able帐户密码。
https://stackoverflow.com/questions/71378839
复制相似问题