-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Credential-Manager only works for github if the User name in Windows Credential is everything but the actual github user name #1631
Comments
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. |
I along with everybody else in my company have the same problem. We use the following fix to work around the issue (that is use wincred instead of manager in git). git config --global credential.gitHubAccountFiltering false Here is a trace when it is working while using "1" as the username. $ git pull Here is a trace when it fails while using the real username. $ git pull |
I just wanted to add that maybe the GitHub filtering is meant to work with the useHttpPath option, which stores a credential per repo, rather than a single credential for all of GitHub. If so then maybe you could configure the filtering to use that option, rather that creating another for the same purpose. |
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 authenticatedThen I found #1555 (comment)
And indeed, changing the User Name in Windows Credentials to "1" lets me run i.e.
git pull
without getting the git-credential-manager popupActually, it seems I can set the User Name to anything as long as it is not my real github username.
Logs
No response
The text was updated successfully, but these errors were encountered: