-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 Core not a git command. See git --help
.
#144
Comments
This sounds as if GCM Core was not installed correctly into your Git's libexec path. What does |
I have the same error on my system:
The installer added to my ~/.gitconfig: [credential]
helper = ""
helper = manager-core
[credential "https://dev.azure.com"]
useHttpPath = true I made a softlink for git-credential-manager-core.exe to the libexec directory where git.exe is. Then a
I then uninstalled this program and went back to GCM 1.20 (which did work and now still works), which puts in ~/.gitconfig, and is installed in the same directory above as git.exe: [credential]
helper = manager |
Hi @scivision, Can you please check if |
Yes it was, I forgot that Windows Terminal needs to be completely closed (all tabs) to update PATH in a new tab. So that was it, close/open Windows Terminal and GCM Core works. Thanks! |
Glad to hear you got things working! 🥳 Please let us know if you encounter any issues with GCM Core, and thanks again for trying GCM Core out. FWIW we're updating the ..which, according to documentation here:
If Windows Terminal listens to |
Just to follow up @scivision, looks like Windows Terminal is only listening for changes to the system theme (light/dark mode) and not other environment changes: An issue with a feature request to add this is already open on the Windows Terminal: microsoft/terminal#1125. |
Windows Terminal as of 1.3, (new since the previous comment) always refreshes the env-vars for a new tab, i.e. same behaviour as "File Explorer", new children will get the new env. So it doesn't need to react to For the existing session, the shell, e.g. PowerShell, Microsoft PowerShell, CMD, would need to update its own environment block by reacting to There are tools like refreshenv from Chocolatey that will update all the env-vars in a running PowerShell or CMD, but they're pretty heavy-handed and lose local changes to thing like |
i tried pushing a project on github but i am getting a git-credential-manager-core.exe error. it is saying i need to install .NET framework, version=v4.7.2. But my system doesnt support that version. i have installed .NET framework runtime version 4.6.2 but the error still persists |
This is not at all the same issue as was reported in this ticket. Please open a new ticket, and provide important information such as your Windows version. |
I have the exact same issue. With any command that involves connecting to the server. To fix it I just uninstalled and reinstalled Git using
This command would actually fail
Eventually I did this:
Then, I only got the |
@arturohernandez10: This sounds like a different problem. the initial issue in this ticket was Git was trying to run I suspect the Cmder status bar is a red-herring, it's probably triggered by git populating the "most similar command" list. So I'd suggest opening a new issue, and as well as the other required information, include the output of |
I guess that the riddle can be solved by running
That |
I just removed this section:
from this file |
This may be helpful to somebody in the future. My system started getting this issue this morning, and this thread helped me to resolve it. Here's what I did (sharing incase it helps anyone else). Using @dscho's very helpful command I could see that there was a mismatch between global and system configurations. git config --show-origin --get-all credential.helper
file:C:/Program Files/Git/etc/gitconfig manager-core
file:C:/Users/whoisj/.gitconfig credential-manager-core By modifying the global config via Thanks to @dscho for the suggestion. |
Running this fixed it for me:
It sounds scary. But it still asks me to authenticate, so I think we're good. |
I simply cloned git-credential-manager-core.exe to git-credential-manager.exe and that's resolved the issue, because in trace were seen that at beginning it asks for credential-manager-core and then only credential-manager |
I had exactly the same problem after upgrading to Git 2.38/Windows/64 |
I realize this is closed but it's the first hit I got when searching for "...Core not a git command..." so I'll add my USD0.02 here. I run git under Cygwin. Installing version 2.0.935 of the Credential Manager Core (Windows version) does not update /usr/libexec/git-core. The fix is to create a symlink:
Now the executable is found by git and the credentials are accessed accordingly. (If you create a link to git-credential-manager-core.exe you get a silly warning about files being renamed. Apparently git and GCM are out of sync on this.) |
After installing Git Credendial Manager Core, in my git config file [credential]
helper = manager-core
helper =
helper = C:/Users/USER/AppData/Local/Programs/Git\ Credential\ Manager/git-credential-manager.exe helper points to some invalid path so i manually found path and valid path on disk to be [credential]
helper = manager-core
helper =
helper = c:/Users/USER/AppData/Local/Programs/Git Credential Manager/git-credential-manager.exe Now helper finally ask for credentials. |
This should work, though, as Git interprets backslash characters as escape characters in the Git config, see https://git-scm.com/docs/git-config#_syntax for more information. Something strange is going on in your setup that disagrees with the documentation. |
@dscho you are right. I run But i cant get git credential manager to ask me for credentials into our azure my git config is like: [credential]
helper = manager-core
helper =
helper = c:/Users/User/AppData/Local/Programs/Git\\ Credential\\ Manager/git-credential-manager.exe
[push]
autoSetupRemote = true
[credential "https://our.company.devops.local"]
useHttpPath = true
[credential "https://dev.azure.com"]
useHttpPath = true |
Which version of GCM Core are you using?
From a terminal, run
git-credential-manager-core version
and paste the output.Git Credential Manager version 2.0.164-beta+1264f234c7 (Windows, .NET Framework 4.0.30319.42000)
Which Git host provider are you trying to connect to?
Can you access the remote repository directly in the browser using the remote URL?
From a terminal, run
git remote -v
to see your remote URL.origin https://github.com/javaniecampbell/one-ui-tailwind.git
[Azure DevOps only] What format is your remote URL?
{org}
@dev.azure.com/{org}
/...{org}
.visualstudio.com/...[Azure DevOps only] If the account picker shows more than one identity as you authenticate, check that you selected the same one that has access on the web.
Expected behavior
I am authenticated and my Git operation completes successfully.
Actual behavior
After attempting to do a git operation e.g.
git pull
it threw an error as shown below:Logs
Set the environment variables
GCM_TRACE=1
andGIT_TRACE=1
and re-run your Git command. Review and redact any private information and attach the log.The text was updated successfully, but these errors were encountered: