7
4

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でPlease use a personal access token instead 的なエラーの解消方法

Last updated at Posted at 2021-07-28

概要

remote: Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead. 
remote: Please see https://github.blog/2020-07-30-token-authentication-requirements-for-api-and-git-operations/ for more information. 
fatal: unable to access 'リポジトリ名': The requested URL returned error: 403

ある日突然的なエラーが出て、pushが出来なくなった。

解消法

ここで personal access tokenを作成し、メモをしておく。
そしたら、該当リポジトリのルートでoriginを書き換える

$ git remote set-url origin https://<githubのユーザー名>:<さっき取得したトークン>@github.com/リポジトリ.git

でpushが出来るようになる

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?