I recently began using two-factor authentication on GitHub, and I am now unable to use git over https on private repos in the usual way:
peter@computer:~$ git cl
To everyone struggling, what worked for me was creating personal access token and then using it as a username AND password (in the prompt that opened).