Git-credential-manager-for-windows: How to make Git-Credential-Manager-for-Windows works with Cygwin?

Created on 14 Mar 2016  路  11Comments  路  Source: microsoft/Git-Credential-Manager-for-Windows

I installed the "Git-Credential-Manager-for-Windows" and changed the "credential.helper" to "manager" in .gitconfig.

Checking the "git config --list" command, I see the credential.helper=manager" is set.

However nothing happened. Git continues to ask me my password for every operation. What I could do to make this works?
Thanks.

Most helpful comment

http://stackoverflow.com/a/36721316/4377192

Get the GCMW's latest release, download the zip file (not the installer), extract it's contents (only .dll and .exe files are needed) to C:\cygwin\usr\libexec\git-core\ for 32-bit Cygwin, or C:\cygwin64\usr\libexec\git-core\ for 64-bit Cygwin. Reference

To tell git to use GCMW, execute: git config --global credential.helper manager

To get GUI prompts for credentials, execute: git config --global credential.modalprompt true

If you want this to be a per-repository setting, remove the --global option.

All 11 comments

In theory, that should be all that you need.

Can you paste your git config -lhere? There may be something in that blocking the correct functioning of the GCM.

user.name=MY NAME
user.email=MY EMAIL
core.autocrlf=false
core.whitespace=-blank-at-eol,-space-before-tab
credential.helper=manager

Just this. Simple. I am running Cygwin on Windows 7.

oh um, I'm not sure your config can be that simple.

With Git for Windows you'll usually see at least something like this:

core.symlinks=false
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
user.name=<user_name>
user.email=<user_email>
push.default=simple
gc.auto=256
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
remote.origin.url=https://github.com/Microsoft/Git-Credential-Manager-for-Windows.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master

Well, it's just what I posted. I will assume all these other parameters have his own default values.
Thanks anyway! :-)

I use Cygwin's built in git and was able to get GCM working by manually copying git-credential-manager.exe into C:\cygwin64\usr\libexec\git-core\ along with it's DLLs. Works like a charm!

I use Cygwin's built in git and was able to get GCM working by manually copying git-credential-manager.exe into C:cygwin64usrlibexecgit-core along with it's DLLs. Works like a charm!

Interesting... https://github.com/Microsoft/Git-Credential-Manager-for-Windows/issues/184

http://stackoverflow.com/a/36721316/4377192

Get the GCMW's latest release, download the zip file (not the installer), extract it's contents (only .dll and .exe files are needed) to C:\cygwin\usr\libexec\git-core\ for 32-bit Cygwin, or C:\cygwin64\usr\libexec\git-core\ for 64-bit Cygwin. Reference

To tell git to use GCMW, execute: git config --global credential.helper manager

To get GUI prompts for credentials, execute: git config --global credential.modalprompt true

If you want this to be a per-repository setting, remove the --global option.

Works for Cmder as well. Thanks @gene-pavlovsky 馃憤

I got it working in MSYS2 using the instructions @gene-pavlovsky provided. Just needed to copy the files to C:\msys64\usr\lib\git-core instead.

I'll note when I had this happen to me it was due to me blowing out the creds for a domain I was on. Outlook wouldn't let me put in my new password change and babun/cygwin got confused after. I was able to use Git Bash to re-prompt the win cred manager. Then it just took a reboot to have cygwin work again.

I have my cred set to "store" not "manager" though.

Note that @gene-pavlovsky's suggested workaround no longer works, as the GCWM zip release is missing AzureDevOps.Authentication.dll. Copying that file from a standard Git for Windows installation to Cygwin's or MSYS2's git-core dir together with the .exe's and .dll's from the GCWM release zip does work perfectly.

e: to elaborate on @cybercussion's comment, having credential.helper set to store makes git not use GCWM, but instead instructs it store username & password combinations on disk in plaintext in ~/.git-credentials.

Was this page helpful?
0 / 5 - 0 ratings