前にも使ったことあるかもしれない。久々すぎておぼえてない。。。
"Personal access tokens (classic) function like ordinary OAuth access tokens. They can be used instead of a password for Git over HTTPS, or can be used to authenticate to the API over Basic Authentication."
Personal Access Tokens (Classic) https://github.com/settings/tokens
「personal access token を入手したら、HTTPS 経由で Git の操作を実行するとき、パスワードの代わりにそれを入力できます。たとえば、コマンド ラインでリポジトリをクローンするには、次の git clone コマンドを入力します。 その後、ユーザー名とパスワードの入力を求められます。 パスワードの入力を求められたら、パスワードの代わりに personal access token を入力します」
個人用アクセス トークンを管理する - GitHub Docs https://docs.github.com/ja/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens