yohann.martineau
yohann.martineau

Reputation: 1643

Cygwin git push hangs, msysgit okay

I'm behind a proxy, and I'm quite new to git and I'm on Windows XP.

I've been able to make a git push origin master work from msysgit but can't make it work in Cygwin with Cygwin's git.

I configured git using the following command lines in both environments:

git config --global user.name ...
git config --global user.email ...
git config --global http.proxy ...

I'm playing with a test Github repo. The issue I have is with the following command line:

git push origin master

In msysgit, I have the following result:

Writing objects: 100% (3/3), 222 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To http://github.com/ymartineau/test.git
 * [new branch]      master -> master

which is okay, and in Cygwin, git asks username, but never asks user password and hangs.

$ git push origin master
Username for 'http://github.com': ymartineau

I'll use msysgit bash for the moment, but I thought it could be interesting to benefit from Cygwin integration.

Upvotes: 7

Views: 3709

Answers (2)

Paul Lysak
Paul Lysak

Reputation: 1294

There's a bug about this: https://github.com/gitextensions/gitextensions/issues/85

The bug description also contains a workaround:

$ git config --global core.askpass /usr/libexec/git-core/git-gui--askpass

This will make prompt appear in a popup window

Upvotes: 4

Justin Wrobel
Justin Wrobel

Reputation: 2019

I had this problem on cygwin too. But after reading the issue log, referenced by Paul, I fixed it by executing the following command:

git config --global core.askpass "git-gui--askpass" #Note the lack of the file path.

Upon issuing a git push two dialogboxes appear after another. username and then password. It's not the best but at least it works.

Upvotes: 6

Related Questions