As of August 13, we no longer accept password authentication for Git operations. @_mph4 gives a rundown of available 2FA options - including a GitHub-branded YubiKey!
https://github.blog/2021-08-16-securing-your-github-account-two-factor-authentication/