Change GIT password in Windows

Asked

Viewed 12,789 times

1

Use the git in the Windows and I need to know how to change his password through CMD. Every time I try to make one git push, it gives the error below and I need to enter the login and the 'new' password

fatal: HttpRequestException encountered. Ocorreu um erro ao enviar
a solicitação. Username for 'https://github.com':

I remember doing it as soon as I installed the GIT in windows, but do not know how to change the password that is already saved.

  • Our language is Portuguese, translate your question.

  • Have you tried git config credential.helper store or add the password to remote origin https://username:[email protected]/jquery/jquery.git?

  • I tried to use git config Credential.helper store but I believe I’m missing some directive to save my password

2 answers

1

Maybe your password is saved in the windows credential manager. To confirm, check in the file .gitconfig in C:/Users/SeuUsuario/, Credential option appears as:

[credential]
helper = wincred

If so, go to the Windows "Credential Manager" (type in the search bar, next to the windows logo in the bottom bar) and change your password for.

  • You don’t have it in my . gitconfig but you have a . gitcredentials file with my username and I put the correct password. Now it is going up without asking for the password, but it keeps giving the error "fatal: Httprequestexception encountered. An error occurred while sending"

0

Try changing the credentials that are saved in windows: Control Panel -> User Account -> Manage Windows Credentials -> Generic Credentials: Select the git credential and change your password to the new one.

Browser other questions tagged

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