Cygwin git push挂起,msysgit okay [英] Cygwin git push hangs, msysgit okay
问题描述
我是一个代理,我是新的git和我在Windows XP。
我已经能够做一个 git push origin master
从msysgit工作,但不能使Cygwin的Cygwin的git工作。
我配置git在两个环境中使用以下命令行:
git config --global user.name ...
git config --global user.email ...
git config --global http.proxy ...
我正在玩一个测试Github repo。我遇到的问题是使用以下命令行:
git push origin master
在msysgit中,我有以下结果:
写对象:100%(3/3),222字节,完成。
Total 3(delta 0),reused 0(delta 0)
到http://github.com/ymartineau/test.git
* [new branch] master - > master
这是可以的,在Cygwin中,git询问用户名,但从不询问用户密码和挂起。
$ git push origin master
http://github.com的用户名:ymartineau
我将使用msysgit bash,但我认为从Cygwin集成中受益可能是有趣的。 p>
解决方案我在cygwin也有这个问题。但是,在阅读由Paul引用的问题日志后,我通过执行以下命令来修复它:
git config --global core.askpassgit-gui - askpass#注意缺少文件路径。
发出
git push
一个又一个。用户名和密码。这不是最好的,但至少它的工作。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.
解决方案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.这篇关于Cygwin git push挂起,msysgit okay的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!