Enable 2FA and access github repo

Published at

#git

This TIL is more than a year old. Some details may have changed.

When 2FA is enabled, one must create a personal access token, and use that as password. Remote repo must be on HTTPS, not SSH. Using two-factor authentication with the command line