首页 > 代码库 > 解决 failed to push some refs to 'git@github.com:zle1992/head-first-java' hint: Updates were rejected because the tip of your curr

解决 failed to push some refs to 'git@github.com:zle1992/head-first-java' hint: Updates were rejected because the tip of your curr

问题描述:

寒假之前用实验室电脑push到github 上head first java 的程序,寒假回家后,想用自己的笔记本继续编,继续push 。

我先从github下载zip到本地,然后 解压后,继续编程,但是用git push origin master 出现问题如下:

技术分享

试了很多方法,最终解决方案如下:

思路: 新建一个文件夹,用pull 命令把文件从github下载下来,编写好新的程序,git add  git commit  git push 

技术分享

 

 

 

技术分享

 

 

 技术分享

 参考:

http://www.tuicool.com/articles/3aIvQfU

解决 failed to push some refs to 'git@github.com:zle1992/head-first-java' hint: Updates were rejected because the tip of your curr