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.

  • fatal: early EOF fatal: index-pack failed
  • What does git-config(1) mean when it says “colors are used only when the output is to a terminal”?
  • git.Run() had no output
  • How to show date's day part with a leading zero in Git log with --date=local?
  • Is this git's correct behavior for “git add” with subfolders?
  • Alter Git prompt on Windows
  • which msysgit version to download?
  • Git push/pull paths not working to windows origin running msysgit + cygwin sshd
  • 2 Solutions collect form web for “Cygwin git push hangs, msysgit okay”

    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.

    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

    Git Baby is a git and github fan, let's start git clone.