Git : BitBucketへVSCodeからPushする際、パスワードを聞かれたら

広告:超オススメUnity Asset
  広告:超オススメUnity Asset

初めてBitBucket(2段階認証設定済み)上のリポジトリにVS CodeからPushしようとすると、パスワード入力待ちになります。

ログインパスワードを入れても失敗します。

[info] Missing or invalid credentials.
Skip silent fetch commands
remote: Invalid credentials
fatal: Authentication failed for ‘https://bitbucket.org/hoge/fuga.git/’

ここに入れるパスワードは以下の「アプリパスワードの作成」から発行できます。ラベルは適当な名前をつけて、リポジトリの読み取り、書き込みにチェックして「作成」。そこで表示された文字列をパスワード入力欄に入れましょう。

Log in to Jira, Confluence, and all other Atlassian Cloud products here. Not an Atlassian user? Sign up for free.