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
It generally comes to mind that you have set up two-factor authentication, after a few password trials and maybe a password reset. So, how can we git clone a private repository using two-factor authentication? It is simple, using access tokens.
How to Authenticate Git using Access Tokens
Wow, it works!