Git Clone from GitHub over https with two-factor authentication

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 clone https://github.com/[…]/MyPrivateRepo Cloning into ‘MyPrivateRepo’… Username for ‘https://github.com’: […] Password for ‘https://[…]@github.com’: remote: Invalid username or password. fatal: Authentication failed for ‘https://github.com/[…]/MyPrivateRepo/’ If I disable two-factor authentication I … Read more