LoginSignup
0
0

More than 1 year has passed since last update.

Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. エラーが発生したら

Last updated at Posted at 2021-08-14

日本時間で8/15 6:00くらいに、自身レポジトリにgit pushしようとしたら
以下のようなエラーが発生しましたので残します。

git push
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: unable to access 'https://github.com/zukaishi/linebot.git/': The requested URL returned error: 403

解決方法

20210815_gittokens_1.png

右上のアイコンクリック → 「Settings」→ 「Developer settings」 →「Personal access tokens」の順番でクリック。
その後、「Generate new token」クリックで、トークンを発行。コピーする。

2021/9/14追記

Screen Shot 2021-09-14 at 8.17.49.png

コピーしたtokenをpassword求められる時に貼り付けて完了。
以下の手順はGUIで対応する時の場合だったみたいです。

20210815_token_2.png

ローカルで、キーチェーンアクセスから、githubを検索。
github.comをクリックし、パスワードを表示にチェック。ロックを解除すると現在のパスワードが表示される。
先ほどコピーしたトークンを、候補のところに貼り付けて、保存。
これでいつも通りgit pushできました。

参考

0
0
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
0
0