Cannot Push Pull when using git credentials manager without full path specified
The Bug is happening when I try to push or pull a commit, the error is "The system cannot find the specified file".
To Reproduce Try to push or pull a commit,
- Open a repository
- Click on Pull or Push
- See error
Expected behavior It should push or pull to the origin
Screenshots
The error on some part is in portuguese and says "The system cannot find the specified file".
Desktop (please complete the following information):
- OS: Windows 11 Enterprise LTSC
- Version 24H2
Hello,
It's a known issue I'm trying to address towards Gitnuro 1.5.0 (there are some fixes in place but not complete). The workaround for now is specifying the manager full path. In the readme there is this example:
[credential]
helper = C:/Program Files/Git/mingw64/bin/git-credential-manager-core.exe
You may need to adapt the path to make sure it exists.
I also had this bug.
The workaround of editing my global gitconfig worked but the edit was slightly different:
[credential]
helper = C:/Program Files/Git/mingw64/bin/git-credential-manager.exe
I.e. git-credential-manger.exe, not git-credential-manager-core.exe.
P.S. Mistakes I made during trying to fix this:
[credentials] without tailing 's' [credential]
editor = ... has to be helper = ...
"C:\Program Files\Git\mingw64\bin\git-credential-manager.exe" has to use linux-like path-structure, while ignoring spaces, and does not allow copy-pasting the path from the Windows-Explorer together with the quotation marks
C:/Program Files/Git/mingw64/bin/git-credential-manager.exe
I was having issues with this even when quoting the credential manager path, git would show an error saying that C:/Program could not be run. If this happens to anyone else short paths fixed it for me.
e.g.:
[credential]
helper = C:/Progra~1/Git/mingw64/bin/git-credential-manager.exe
I've edited the title and I'll try to address this issue for 1.6.0, as this issue shows up quite often and should be fixable. I've tested some solutions that work well with Linux and MacOS but not Windows.