久しぶりに研究用のソースコードをSourceTreeでGitHubにプッシュしようとしたらこんなエラーが,,,

 

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin master:master
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/******/******/'

Pushing to https://github.com/******/******
エラー終了しました。エラーの内容は上記をご覧ください。

 

調べてみたら,2012/08/13からパスワード認証が使えなくなったんですね.へぇー

代わりに個人用アクセストークン使えって書いてあるので,従うことにします.

 

ということで,以下のブログを参考にしました.

 

 

詳しくは上のブログを見てもらうとして,補足.

Setting > Developer settings > Personal access tokens > Generate new token

のSelect scopesは"repo"を選択しました.正解かどうかは分かんない.

 

認証をBasicでやったら"メールアドレスが見つかりせん"で認証に失敗しました.アドレスは登録しているはずなのになんで?

 

解決策模索中です.