根据 this blog post ,BitBucket 将于 3 月份禁止使用帐户密码进行 HTTPS 访问。
我已经创建了其中一个“应用程序密码”凭据 - 但如何让 IDEA 开始使用它?
我很确定我最初将 IDEA 设置为通过 HTTPS 访问,并在出现提示时输入我的 BitBucket 帐户用户名/密码。
在我的 IDEA Git 设置中,未启用使用凭据帮助程序
(因此 Windows 凭据管理器不相关,非常确定 IDEA 正在将其保存到设置目录中的 Keepass 文件中)。
在帐户详细信息发生更改的其他情况下,我通常只是尝试访问存储库,等待 IDEA 失败并提示输入详细信息,然后输入新凭据。
鉴于旧密码仍然有效,我如何告诉 IDEA 使用新密码?
我不想做的事情:
- 我不想重置所有凭据,只想重置这一个 BitBucket 密码。
- 我不想改用 Windows 凭据管理器。
- 我不想更改为 SSH。
最佳答案
以防万一有人仍然需要此信息,我是这样做的。我不是专家 - 远非如此,但我让它发挥作用......
如何在 IntelliJ 中检查凭据
菜单 Git > 管理远程... Git_ManageRemotes
在“定义远程”屏幕中检查远程 URL,然后按“确定”。
当您按“确定”时,它将重新进行身份验证,在我的情况下,这给了我一个窗口,我必须在其中输入我的应用程序密码。
如果您没有收到凭据弹出窗口(这意味着您当前的凭据仍然有效),可以删除当前的远程 URL 并重新添加它,以强制弹出用户名/密码。 Git_Remotes
如何在 BitBucket 中配置您的应用密码
- 按照您链接的博客文章中的说明进行操作(复制到下面以供存档)
To create an app password:
- From your profile and settings avatar, select Personal settings.
- Select App passwords under Access management.
- Select Create app password.
- Give the app password a name related to the application that will use the password.
- Select the specific access and permissions you want to assign to this application password.
- Copy the generated password and either record or paste it into the application you want to give access. The password is only displayed this one time.
- 您的应用程序密码需要哪些权限? 就我而言,我需要的只是拉/推代码,因此以下权限就足够了(拉请求-写入,其余部分自动启用) AppPassword_Permissions
关于intellij-idea - IntelliJ IDEA : How do I verify and/or change my BitBucket git credentials?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70911498/