Cygwin git Push 挂起,msysgit 还好
我使用代理,而且我对 git 很陌生,而且我使用的是 Windows XP。
我已经能够从 msysgit 使 git Push origin master
工作,但无法使用 Cygwin 的 git 在 Cygwin 中工作。
我在两种环境中使用以下命令行配置了 git:
git config --global user.name ...
git config --global user.email ...
git config --global http.proxy ...
我正在使用测试 Github 存储库。我遇到的问题是以下命令行:
git push origin master
在 msysgit 中,我得到以下结果:
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
这没关系,在 Cygwin 中,git 询问用户名,但从不询问用户密码并挂起。
$ git push origin master
Username for 'http://github.com': ymartineau
我暂时将使用 msysgit bash,但我认为从 Cygwin 集成中受益可能会很有趣。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在cygwin上也遇到这个问题。但是在阅读了 Paul 引用的问题日志后,我通过执行以下命令修复了它:
发出 git push 后,两个对话框相继出现。用户名,然后是密码。这不是最好的,但至少它有效。
I had this problem on cygwin too. But after reading the issue log, referenced by Paul, I fixed it by executing the following command:
Upon issuing a
git push
two dialogboxes appear after another. username and then password. It's not the best but at least it works.有一个关于此的错误: https://github.com/gitextensions/gitextensions/issues/85
bug 描述还包含一个解决方法:
这将使提示出现在弹出窗口中
There's a bug about this: https://github.com/gitextensions/gitextensions/issues/85
The bug description also contains a workaround:
This will make prompt appear in a popup window