2
1

More than 3 years have passed since last update.

[8/13 GitHub仕様変更]パスワードをパーソナルアクセストークンに変更

Last updated at Posted at 2021-08-16

問題

githubからcloneしてみるとエラーが出ます

$ git clone https://github.com/xxxxxxxx/repository.git
Cloning into 'repository'...
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 'https://github.com/username/repository.git/': The requested URL returned error: 403

上記のようにエラーが起きます。
パスワードをパーソナルアクセストークンに変更してくださいということなので従います。

解決方法

パーソナルアクセストークン

以下のドキュメントを参考に取得します。
https://docs.github.com/ja/github/authenticating-to-github/creating-a-personal-access-token

取得手順

1.Developer settings(https://github.com/settings/tokens )をクリック
2.[Generate new token]をクリック
3.トークンにわかりやすい名前をつけます
4.権限を選択
5.[Generate token] をクリック
6.トークンをコピー (このトークンがパスワードの代わりになります)
7.パスワードの代わりにトークンを使用

まとめ

急に仕様が変更されていたので焦りました。

2
1
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
2
1