0
0

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 3 years have passed since last update.

git pushで「Support for password authentication was removed on August 13, 2021」と表示された場合の対処法

Posted at

2021/8/13から、Https経由でgithubのリモートリポジトリにpushする際の認証で、パスワードが使えなくなったらしい。

パスワードの代わりにgithub上で「personal access token」を発行すれば解決できる。

公式に発行する方法が載っていて、その通りに設定したら解決。

personal access tokenの発行方法

personal access tokenは発行す際、有効期限の設定をすることができる。

期限無しも可能だが、念の為90日で作成してみた。

90日経過後、再度tokenを発行して同じ手順を行う必要がある。

ちなみに、既にキーチェンアクセスにgithubのログイン・パスワードが保存されている場合は、削除してpersonal access tokenで認証し直す必要がある。

上記の手順を試した後、pushを実行してみるとUsernameとPasswordを聞かれるので、発行したpersonal access tokenをコピペすればOK。

Username for 'https://github.com': XXXXX
Password for 'https://XXXXX@github.com':(personal access tokenをコピペ) 

以上。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?