git 身份验证的应用程序密码(bitbucket 和 sourcetree)

day*_*po3 2 git bitbucket atlassian-sourcetree

当我尝试推送时,sourcetree 显示以下错误。

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags ruling master:master
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/xxxxxxx/ruling.git/'
Run Code Online (Sandbox Code Playgroud)

所以我去了https://bitbucket.org/account/settings/app-passwords/ 创建应用程序密码,添加密码标签,并选择权限。

但推送仍然不起作用,并且出现相同的错误消息。

之后,我不知道该怎么办。请告诉我下一步应该做什么。

小智 5

在 Windows 上,导航至

C:\Users\<UserName>\AppData\Local\Atlassian\Sourcetree并删除该passwd文件。

  • 请注意,删除此文件后,Sourcetree for Windows 最终可能会再次提示您输入密码。

以下链接中提到了另外两个潜在的解决方案,但对我来说,上述方法有效:

https://community.atlassian.com/t5/Sourcetree-articles/Bug-Fix-Sourcetree-for-Windows-authentication-error-when/ba-p/1965968