How do i set up my GitHub account in my Ubuntu machine?

Via Command Line, I have configured the email & username variables, when doing the git push for the first time & I entered my account credentials when prompted. But it throws the error remote: Invalid username or password.

I have enabled Two-factor authentication (2FA) in my account & when i tried with similar approach via Git CMD in Windows, an UI window popped up to enter & verify the 2FA .

How it should be achieved in Ubuntu ?

Ubuntu OS version: 20.04
GitHub Version: 2.25.1

  • Maybe you need to use GitHub API? – Akib Azmain May 26 at 7:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.