我输入"git push"、"git push origin master"或"git push -u origin master",但什么也没有,只有一个空白行需要我使用ctl-c才能回到提示符。
"ssh-keygen -t rsa -C 'me@example.com'"要求我输入文件名并挂起。
"git push heroku master"也挂起了。
"$ git status"返回"On branch master nothing to commit, working directory clean"。
"$ git pull"返回"Already up to date"。
"$ git remote -v"返回:
heroku git@heroku.com:myherokusite.git (fetch)
heroku git@heroku.com: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
更新:使用SSH URL git@github.com:gitusername/gitrepo.git
也会卡住。
git remote set-url origin https://github.com/gitusername/appname.git
是正确的。
更新:我可以看到在卡住时Windows任务管理器中运行的git进程。
我尝试过:
使用不同的互联网连接位置
在https和ssh之间切换,但都会卡住
卸载git。从https://code.google.com/p/msysgit/downloads/list重新安装
卸载git。安装Cygwin的git
卸载git。安装Github for Windows GUI应用程序,我能够推送。但是这个应用程序功能有限,迫使我离开Cygwin窗口进入另一个应用程序,然后迫使我进入Windows命令提示符以获取完整功能,而我原本以为已经通过使用Cygwin逃脱了这种情况。
花费了很多很多时间来解决这个问题,在此之前它一直没有出现过,谢谢。
2014年4月更新:我重建了整个机器Win 7,Cygwin等,现在一切都正常了。
git push origin master
就可以正常工作。 - skilbjo