我正试着把我的项目放在github上。我不明白为什么我会得到这个错误:
ssh: connect to host github.com port 22: Operation timed out
fatal: The remote end hung up unexpectedly当我这样做的时候:
git push origin master我一直在严格按照github生成的指令进行操作:
Next steps:
mkdir UniqCheck
cd UniqCheck
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:dylandrop/UniqCheck.git
git push -u origin master 我不知道为什么我会得到这个错误。我已经成功地从一个不同的git repo (不属于我)中为另一个项目进行了推送和拉取。到目前为止,我所见过的其他问题都不起作用,或者与我的问题完全匹配。
编辑:还有,可能很有趣,这是我执行git config -- get -regexp‘^(remote|branch)时得到的结果。
remote.origin.url git@github.com:dylandrop/UniqCheck.git
remote.origin.fetch +refs/heads/*:refs/remotes/origin/*发布于 2012-03-25 05:54:33
它现在起作用了。我猜我只是决定推得太快了,github还没有处理我的项目。真奇怪。
https://stackoverflow.com/questions/9855051
复制相似问题