Solving Github “Invalid username or password” Problem.

We could encounter an “Invalid username or password” problem when we enable 2FA two-factor auth and try “git push“.

The solution is to instead of using your GitHub account password, you need to generate a secret token.

Here is the instruction from Github:

Finally, you should do is:

$ git clone
Username: your_username
Password: your_token

Author: aerodc

Software Engineer