git-ecosystem / git-credential-manager

Secure, cross-platform Git credential storage with authentication to GitHub, Azure Repos, and other popular Git hosting services.
Other
6k stars 1.63k forks source link

Credential-Manager only works for github if the User name in Windows Credential is everything but the actual github user name #1631

Open jaatwork opened 1 month ago

jaatwork commented 1 month ago

Version

2.5.0+d34930736e131ad80e5690e5634ced1808aff3e2

Operating system

Windows

OS version or distribution

10 Pro 19045.4412

Git hosting provider(s)

GitHub

Other hosting provider

No response

(Azure DevOps only) What format is your remote URL?

None

Can you access the remote repository directly in the browser?

Yes, I can access the repository

Expected behavior

After installing git for windows on the machine I did a first git clone . This asked me for Authentication via git-credential-manager and stored the credentials in the Windows Credentials.

The next time I did a git fetch (or any other git command that requires authentication) I expected the stored credentials to be used. Especially I expect my actual git User Name to be required.

Actual behavior

I get a git-credential-manager popup every time I interact with github via a git command that requires to be authenticated

Then I found https://github.com/git-ecosystem/git-credential-manager/issues/1555#issuecomment-2148567509

And indeed, changing the User Name in Windows Credentials to "1" lets me run i.e. git pull without getting the git-credential-manager popup

Actually, it seems I can set the User Name to anything as long as it is not my real github username.

Logs

No response

mjcheetham commented 1 month ago

This is unexpected for GitHub. Are you using GitHub Enterprise Server, or GitHub.com?

Please can you include trace logs, otherwise we will be unable to assist further.