解决 failed to push some refs to 'git@github.com:zle1992/head-first-java' hint: Updates were r

Posted 张乐乐章

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决 failed to push some refs to 'git@github.com:zle1992/head-first-java' hint: Updates were r相关的知识,希望对你有一定的参考价值。

问题描述:

寒假之前用实验室电脑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 r的主要内容,如果未能解决你的问题,请参考以下文章

解决failed to push some refs to

如何解决failed to push some refs to git

GIT用git push出现failed to push some refs to git...的解决方法

如何解决failed to push some refs to git

解决failed to push some refs to git

解决git push出现error: failed to push some refs to 错误