2FA を有効にしただけで (他に行った変更は思いつきません)、git がユーザー名とパスワードを要求しました。私は両方を提供しましたが、それらは「間違っていました」。ここで多くの解決策を試しました: Git プッシュにはユーザー名とパスワードが必要ですが、うまくいきませんでした。特に、https から ssh に切り替えると、ssh キーは
許可が拒否されました (公開鍵)。致命的: リモート リポジトリから読み取れませんでした。
$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
Username for 'https://github.com': **********
Password for 'https://mlbileschi@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/mlbileschi/scala.git/'
任意のヒント?