2021年にgit hubへ接続するのに、password認証ではなくアクセストークンで認証をしなければ行けなくなりました。
セキュリティ強固のためでしょうかね。
多分いろんな人が記事にしているので簡単に。
githubの個人ページから、developper settingにてパーソナルアクセストークンを選択。
その後、トークン発行する。
To give your token an expiration, select the Expiration drop-down menu, then click a default or use the calendar picker.
トークンが有効な期限を決めます。7日や30日とか設定できます。
$ git clone https://github.com/username/repo.git
Username: your_username
Password: your_token
Usernameとpasswordを聞かれる際に、passwordはアクセストークンを入力する。
すると、cloneだったりが可能になります。
参考:
https://docs.github.com/ja/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token 日本語
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token 英語