はじめに
初めてGitHub上にリポジトリを作成して、ローカルにクローンしようとした際に表示されたエラーです。
エラー文
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/xxx/xxx.git/'
原因
2021年8月13日以降、GitHubへのアクセスは、ユーザ名とパスワードではなく個人用アクセストークンで認証する必要があります。
解決方法
以下の公式ドキュメントを参考に個人用アクセストークンを作成する。
個人用アクセス トークンの作成