question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't change git password

See original GitHub issue

Describe the bug

Can’t change git password

Version & OS

Windows 10 x64 Github Desktop Version 2.2.4

Steps to reproduce the behavior

  1. Add external repo to github desktop, commit to it (you will be prompted to enter credentials before first push).
  2. Then change password for this account
  3. Create new commit in github desktop
  4. You will be prompted to enter new credentials, which will not work.

Expected behavior

I am expecting to successfully change password in “Authentication failed” prompt.

Actual behavior

Authentication failed every time.

Screenshots

Screenshot_1

Logs

Here I am trying twice:

2020-01-08T11:16:08.108Z - info: [ui] [AppStore] loading 14 repositories from store
2020-01-08T11:16:08.108Z - info: [ui] [AppStore] found account: saloid (Dmytro)
2020-01-08T11:16:08.487Z - info: [ui] launching: 2.2.4 (Windows 10.0.18362)
2020-01-08T11:16:08.488Z - info: [ui] execPath: 'C:\Users\myUserName\AppData\Local\GitHubDesktop\app-2.2.4\GitHubDesktop.exe'
2020-01-08T11:16:08.903Z - info: [ui] Current tutorial step is NotApplicable
2020-01-08T11:16:14.352Z - info: [ui] Executing push: git -c credential.helper= push origin more_devices:more_devices --progress (took 1.190s)
2020-01-08T11:16:29.157Z - info: [ui] Current tutorial step is NotApplicable
2020-01-08T11:16:34.655Z - info: [ui] storing generic credentials for 'gitlab.my-company-address.com/projects_address' and 'my.mail@my-company-address.com'
2020-01-08T11:16:35.700Z - info: [ui] Executing push: git -c credential.helper= push origin more_devices:more_devices --progress (took 1.025s)
2020-01-08T11:16:48.579Z - info: [ui] storing generic credentials for 'gitlab.my-company-address.com/projects_address' and 'my.mail@my-company-address.com'
2020-01-08T11:16:49.622Z - info: [ui] Executing push: git -c credential.helper= push origin more_devices:more_devices --progress (took 1.015s)

Additional context

I have even tried to change password via windows Credential Manager for both: simple git and Github desktop - still getting auth failed. From simple git cli I can push after changing that, but not from Github desktop.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
saloidcommented, Jan 15, 2020

I have deleted github record in windows credential manager and now it works. I was prompted to enter username and password like before, but in this time it was without error.

2reactions
stevewardcommented, Jan 8, 2020

@saloid try try closing GitHub Desktop, deleting the %AppData%\GitHub Desktop directory, and then launching GitHub Desktop again – this should clear out everything. You will need to add your local repositories back into GitHub Desktop after doing this (dragging-and-dropping multiple repositories is the quickest way to do this).

Read more comments on GitHub >

github_iconTop Results From Across the Web

windows: git has old github username, cant change git user
Another thing I tried was to edit the .git/config after cloning the repo. I tried changing the https to ssh url, as https...
Read more >
How to update your Git credentials on Windows
To update your credentials, go to Control Panel -> Credential Manager -> Generic Credentials. Find the credentials related to your git account ...
Read more >
7.14 Git Tools - Credential Storage
This means that until you change your password for the Git host, you won't ever have to type in your credentials again. The...
Read more >
Can't use git Fetch of Pull since change to app passwords.
Solved: Since the change to app passwords I can't do a git Fetch or Pull. I have created an app password. In trying...
Read more >
Git does not remember username and password on Windows
Manually set the credentials in the Windows Credential Manager · Check if your git repository credential is not already listed · Manually add ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found