Authentication error sending file to repository on Github

Asked

Viewed 2,051 times

3

Well, I followed that one link, but when I get to git push -u origin master it asks for the git user and password in a windows Forms, then asks the user (2 line), and asks for the SSH password and I haven’t even configured 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)
  • already tried to pass github email?

  • I don’t quite understand.

  • With HTTPS you use your login password in git. See this question

  • I just found out it was the version, updated it and it worked.

2 answers

1

There may be different reasons for this error:

  • Your username or password is incorrect. To ensure, remove your Github access credentials on Windows via Credential Manager and try again.
  • You activated the 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 installation or Git version update can solve.

1

Try to do that:

$ git config --global user.name seu_nome_de_usuario
$ git config --global user.email [email protected]

If it doesn’t work, as you are using HTTPS, try to verify if the password you are typing matches your remote password.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.