卡在推,什么都没有发生 [英] Stuck at push, nothing happens
问题描述
我以前使用git都没有任何问题,但是突然之间我什么都无法推或克隆.
当我使用此命令时,什么也没有发生,甚至没有错误,因此我必须按 ctrl + c 或仅关闭git窗口.
我使用以下简单命令进行推送:
i used git before without any problem, but suddenly i can't push or clone anything.
when i use this command, just nothing happens, not even an error, so i have to press ctrl + c or just close git window.
i use this simple command for pushing:
git push origin master
还尝试了使用 -u 参数.
- 我在防火墙中打开了端口22,没有运气
- 我同时使用http和ssh,再次没有运气
- 我安装了新版本的git,没有运气
那么我能做些什么来解决这个问题?
so what i can do to solve this?
更新:
我在虚拟机上安装了一个全新的Win XP,并测试了推送的结果,结果与以前相同,所以可能是我的互联网连接出现了问题.
i installed a fresh win xp on virtual machine and test to push something, same result as before, so may be my internet connection have some problem.
有什么主意吗?
推荐答案
首先, ssh访问存在一些问题最近:
我们目前正在调查其中一对文件服务器上的SSH访问问题.少数存储库可能会受到影响.
We are currently investigating SSH access problems on one of our fileserver pairs. A small number of repositories may be affected.
第二,您需要尝试使用https,而不是http:
Second, you would need to try and use https, not http:
git remote set-url origin https://github.com/username/reponame
第三,git push -u origin master
仅用于第一次推送(此后,仅git push
就足够了:请参阅"为什么我需要明确推送新分支吗?以了解更多信息)
Third, the git push -u origin master
is only for the first push (after that, git push
alone is enough: see "Why do I need to explicitly push a new branch?" for more)
如果推送或克隆问题仍然存在,那么您需要联系GitHub支持以了解更多信息.
If the push or clone issue still persists, then you need to contact GitHub support to know more about this.
这篇关于卡在推,什么都没有发生的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!