ぼんやりDTP

DTPに関係したりしなかったりするぼんやりとした話をなんとなく。

Bitbucket のリモートリポジトリのパスワードの変更

Bitbucket のリモートリポジトリにgitでpushしたら、既存のパスワード(account password)はgitで使えなくなるとの下記のようなメッセージが出たので更新する。

remote: You are using an account password for Git over HTTPS.
remote: Beginning March 1, 2022, users are required to use app passwords
remote: for Git over HTTPS.
remote: To avoid any disruptions, change the password used in your Git client
remote: to an app password.
remote: Note, these credentials may have been automatically stored in your Git client
remote: and/or a credential manager such as Git Credential Manager (GCM).
remote: More details:
remote: https://bitbucket.org/blog/deprecating-atlassian-account-password-for-bitbucket-api-and-git-activity
  1. アプリ パスワード | Bitbucket Cloud | アトラシアン サポートに従って、アプリ パスワード(app password)を作成、メモっておく。
  2. 既存のローカルリポジトリで下記のコマンドを実行してリモートリポジトリを設定。
git remote set-url origin https://<Your_Account_Name>:<App_Password>@bitbucket.org/<Your_Account_Name>/<Repo_Name>.git

以上で一応メッセージは出なくなった。

参照ページ:

  1. Deprecating Atlassian account password for Bitbucket API and Git activity - Bitbucket
  2. App passwords | Bitbucket Cloud | Atlassian Support
  3. How to access bitbucket using app password - Stack Overflow
  4. 続報: Bitbucket APIとGitアクティビティでのAtlassianアカウントのパスワード... - Atlassian Community
  5. アプリ パスワード | Bitbucket Cloud | アトラシアン サポート