每次我尝试推送到 github 时,Git Push 都会挂起。我正在使用 Cygwin 和 Windows 7。Git 可以在本地跟踪分支、提供状态、设置全局 user.name 和 user.email 并允许提交。
我还是个新手,正在学习。
I enter git push
, git push origin master
or git push -u origin master
我只得到一个空行,要求我按 ctl-c 才能恢复提示。
ssh-keygen -t rsa -C "[email protected] /cdn-cgi/l/email-protection"
询问我文件名并挂起
git push heroku master
hangs
$ git status
回报On branch master nothing to commit, working directory clean
$ git pull
回报Already up to date
$ git remote -v
返回:
heroku [email protected] /cdn-cgi/l/email-protection:myherokusite.git (fetch)
heroku [email protected] /cdn-cgi/l/email-protection:myherokusite.git (push) origin
https://github.com/gitusername/appname.git (fetch) origin
https://github.com/gitusername/appname.git (push)
or the correct ssh remote settings are returned when trying this with ssh
Updated:使用 SSH 网址[email protected] /cdn-cgi/l/email-protection:gitusername/gitrepo.git
也挂了
git remote set-url origin https://github.com/gitusername/appname.git
是正确的
Updated:我可以看到 git 进程在 Windows 任务管理器挂起时正在运行。
我试过了:
使用不同的互联网连接位置
在 https 和 ssh 之间切换,它挂起
卸载了git。重新安装自:https://code.google.com/p/msysgit/downloads/list https://code.google.com/p/msysgit/downloads/list
卸载了git。安装了Cygwin的git
卸载了git。安装了 Windows GUI 应用程序的 Github,我可以推送它。但这个应用程序的功能有限,迫使我离开 Cygwin 窗口进入另一个应用程序,然后迫使我进入 Windows 命令提示符以获得完整的功能,我认为我已经通过使用 Cygwin 逃脱了。
花了很多很多时间试图解决这个问题,之前它工作得很好,谢谢。
2014 年 4 月更新:我重建了我的整台机器 Win 7、Cygwin 等,现在一切正常