59

My credentials are saved in TortoiseGit (using Wincred) but my password changed.
The only way for me to pull from the repository now is to remove the Credential Helper.

How can I simply change the password?
Alternately, can I remove my credentials and save my new ones?

MrTux
  • 28,370
  • 24
  • 91
  • 123
Gidil
  • 3,957
  • 2
  • 30
  • 48

2 Answers2

140

Normally the invalid credentials should be purged automatically (after one unsuccessful authentication attempt).

Go to the Windows Credential Manager (press Windows and type "Credential Manager", or go to Control Panel\User Accounts and Family Safety\Credential Manager or use Start->Run rundll32.exe keymgr.dll,KRShowKeyMgr), there all saved credentials should be listed (prefixed with git:).

For ways to also remove saved credentials on other OS, see https://stackoverflow.com/a/39944557/3906760.

MrTux
  • 28,370
  • 24
  • 91
  • 123
  • 4
    Still relevant to this day. The Git and TortoiseGit team should really just include this info in their FAQs directly without linking here. – BoffinBrain Oct 10 '17 at 16:11
  • 3
    On Windows 10 it is quite hard to locate the Control Panel (can find it from Settings/Apps since it has a link to the older Add-Remove Programs at its sidebar - that one is hosted at the Control Panel so you can then reach it from there). What worked for me was a 2nd Pull action, it removed the old credentials and used the new password this time fine – George Birbilis Jun 27 '18 at 15:09
  • 2
    On Windows 10, type Control Panel in the search box next to the Windows icon on the bottom bar. Select Control Panel app. When Control Panel is open, type Credential Manager into the Search Control Panel box at top right. Select Windows Credentials Click on the down arrow the right of each credential starting with git: and select Remove – Dragonel Jun 19 '19 at 14:54
  • 5
    Found an even easier way - just type Credential Manager into the search box on the bottom bar, then carry on as above. – Dragonel Jun 19 '19 at 15:03
  • Thanx! MrTux for saving my day – Adi Apr 23 '20 at 05:54
22

I changed my Windows password and now GIT would fail with authentication error, and even doing 2 pull in a row with git pull -v would not prompt for the new password.

It was really hard to find the Windows credential manager since not only do I have Windows 10, but also it's a French language version.

I finally found on this page I could access it by using:

rundll32.exe keymgr.dll,KRShowKeyMgr

and I double-clicked on the git:http: line to enter the right password and I was then able to pull and push to the repository.

I hope this helps someone else.

I'd still like to understand why it's not asking me for the new password anymore - it used to ask for it the first 2 months after I got my Windows 10 PC (I change password every month)

StackzOfZtuff
  • 1,671
  • 18
  • 19