初试 Github


按照官方文档入门向导[1],走到第二步就出问题了。

$ git push origin master

按照提示输入 username 和 password 后,反复报同一个错误:

“fatal: https://github.com/xxx/helloworld.git/info/refsnot found: did you run git update-server-info on the server?”

是的,我尝试了各种方法试图解决这个错误,通过 google 找到 stackoverflow 上的问答页[2],反复检查 url、username、password。。。直到看到最下面的某个赞同数为 0 的回答。似乎恍然大悟,哦,我好像没有按照入门向导页完整走下去:我没在 Github 网站上创建 Repository!!

让我无视掉在 Github 网站上先创建一个 Repository 的直接原因是,我先装了 Github Windows 客户端,并且使用它成功将本地一个 repository 导入到了 Github 服务器。我以为,在 Git bash 下也可以做到,于是直接扫到 bash 命令那部分了。。


[2]“did you run git update-server-info” error on a Github repository" http://stackoverflow.com/questions/9343189/did-you-run-git-update-server-info-error-on-a-github-repository

猜你喜欢

转载自wxl24life.iteye.com/blog/1743666
今日推荐