3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

(mac)SourceTreeでremote: Invalid username or passwordが表示

Posted at

soucetreeを使ってpush使用としたところpasswordを求められた。嫌な予感がしたが、passwordを入力。案の定、間違えてしまい。remote: Invalid username or passwordが連呼された。
理由は間違ったアカウント情報だからだめーということだがハマりにはハマったのでメモとして残す。

アカウントの設定

アカウントの設定がなかったので改めて設定しようとした。
soucetreeが有効になっている状態でメニューバー > soucetree > 環境設定 > アカウント
bitbucketのアカウントでsoucetreeを使用しているので bitbucketを選択。
しかし、うまく認証画面にいかない。うそだろと、12回試したとこで諦めた。

高度な設定に登録されているホスト名を削除

高度な設定に登録されているホスト名を削除を削除して、リモートにアクセスするといけるとあったので
とりあえず削除して soucetreeが有効になっている状態でメニューバー > soucetree > 環境設定 > 高度な設定
2つホストに登録があり、2つとも削除してリモートにアクセス。
remote: Invalid username or passwordが連呼され、諦めた

KeyChainAccess

KeyChainAccessにsoucetreeに設定したpasswordがあるとの記事を取得!!!

https://qiita.com/okamotoke/items/141ecf280c84f93c8d4e
@okamotokeさんありがとうございます。

KeyChainAccessを開きみると、、色々これまでみたサイトのベーシックが保存されていた。どれだろうと確認している
soucetreeにアクセスするbitbucketのhostが記載された項目発見。
これを一回削除して、リモートへアクセスするとpasswordの要求があり、再度設定。
これでなんとかpush完了。

soucetreeでpasswordが出たら鬼門

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?