每次我嘗試推送到github時,Git push都會掛起。我正在使用Cygwin和Windows 7. Git在本地跟蹤分支機構,提供狀態,設置全局user.name和user.email以及允許提交都很好。推送到Github時Git push會掛起?
我還是個新手,在學習。
我輸入git push
,git push origin master
或git push -u origin master
我得到的只是一個空行,需要我用ctl-c來得到提示信息。
ssh-keygen -t rsa -C "[email protected]"
問我要文件名和掛
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 [email protected]:myherokusite.git (fetch)
heroku [email protected]: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 [email protected]:gitusername/gitrepo.git
還掛着
git remote set-url origin https://github.com/gitusername/appname.git
是正確的
更新時間:我可以看到在Windows任務管理器運行時,它掛起git的過程。
我已經試過:
使用不同的網絡連接位置之間的HTTPS和SSH
開關和它掛
卸載飯桶。從以下版本重新安裝:https://code.google.com/p/msysgit/downloads/list
Uninstalled git。安裝Cygwin的git
卸載git。安裝了Github for Windows GUI應用程序,並且我能夠推送。但是這個應用程序的功能有限,迫使我離開我的Cygwin窗口進入另一個應用程序,然後強制我進入Windows命令提示符以獲得完整的功能,我想我已經使用Cygwin逃脫了。
花了很多很多時間試圖解決這個問題,它之前工作無誤,謝謝。
UPDATE2014分之4:我重建整個機器的Win 7,Cygwin的等,而且所有正在工作的罰款
你是在防火牆還是代理之後? –
我試過不同的互聯網連接沒有成功,是的,我有反病毒從來沒有造成過問題。沒有代理。 –
運氣好嗎?我遇到了與cygwin相同的問題。解決辦法:如果我使用本地windows shell(cmd.exe),但是'git push origin master'工作正常。 –