LoginSignup
3
1

More than 5 years have passed since last update.

SourceTreeでbitbucketにpushができなくなったときの話

Posted at

症状

3日前までpushできていたのに急にpushできなくなった。windows10のみ。macは大丈夫。
エラーは以下。

remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.
fatal: Authentication failed for 'https://xxxxxx@bitbucket.org/xxxxxxx/xxxxxxx.git/'

原因予想

おそらくbitbucketのパスワードを変更したことが原因。

試したこと

SourceTreeのオプション>認証でパスワードを変更。認証成功と出る。しかしこの状態でpushしても相変わらずエラー。

以下の記事を参考に資格情報を消して再設定したりしたが解消せず。
https://confluence.atlassian.com/bbkb/authentication-error-remote-invalid-username-or-password-942864127.html

何とか解消

結局SourceTreeをアンインストールし、設定等が入っているフォルダ C:\Users<username>\AppData\Local\Atlassian\SourceTree を適当な場所にバックアップして削除。SourceTree再インストールで解消しました。その後バックアップからbookmark等を戻して環境も復帰。

認証情報の保存まわりをもうちょっと勉強しなければ。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1