Push to remote having two-factor authentication enabled

If you use SSH keys you shouldn’t have this problem.

Generate and add SSH keys

Then make sure to clone your repo with the ssh url or change your local repos remote url to the ssh url.

2 Likes