gitHub FAQ

来源:互联网 发布:剑三正太捏脸数据妖孽 编辑:程序博客网 时间:2024/05/28 04:55

1.在执行

$ git remote addorigin git@github.com:defnngj/hello-world.git

错误提示:fatal: remote origin already exists.

解决办法:

$ git remote rm origin

然后在执行:$ git remote add origin git@github.com:defnngj/hello-world.git 就不会报错误了

 

2. 在执行

$ git push origin master

错误提示:error:failed to push som refs to.......

解决办法:

$ git pull origin master //先把远程服务器github上面的文件拉先来,再push 上去。

 

---------------------------后记-----------------------------------------------------------------------

本文是参考官方帮助进行的:http://help.github.com/win-set-up-git/ 基本与官方步骤相同,我在此属于翻译了一下!

关于更过的学习:请登陆: http://progit.org/book/zh/进行学习

原创粉丝点击