Authentication error when sending file to repository in Github

1

Well, I followed the steps in this link , but when I arrive in git push -u origin master it asks the git user and password in a windows forms, then asks the user (2 line), and asks for the SSH password, and I did not even set this password and I'm using https. The SSH key is created.

Fatal: AggregateException encountered.
Username for 'https://github.com': letarzan
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/LeTarzan/TCC.git/'

What can it be?

Git remove -v:

origin  https://github.com/LeTarzan/TCC.git (fetch)
origin  https://github.com/LeTarzan/TCC.git (push)
    
asked by anonymous 26.07.2018 / 20:41

1 answer

0

There may be different reasons for this error:

  • Your username or password is incorrect. To ensure, remove your Github credentials from Windows via Credential Manager and try again.
  • You have enabled two-factor authentication in your Github account. In this case you need to generate a access token .
  • You are not a repository contributor.

In some cases it may be some Git configuration problem installed on your machine. A clean install or upgrade version of Git can resolve.

    
03.08.2018 / 21:23