红联Linux门户
Linux帮助

解决failed to push some refs to 'git@github.com

发布时间:2017-01-26 15:52:58来源:linux网站作者:张乐乐章
问题描述:
寒假之前用实验室电脑push到github 上head first java 的程序,寒假回家后,想用自己的笔记本继续编,继续push。
我先从github下载zip到本地,然后解压后,继续编程,但是用git push origin master 出现问题如下:
解决failed to push some refs to 'git@github.com
failed to push some refs to 'git@github.com:zle1992/head-first-java' hint: Updates were rejected because the tip of your curr
 
试了很多方法,最终解决方案如下:
思路:新建一个文件夹,用pull 命令把文件从github下载下来,编写好新的程序,git add  git commit  git push
解决failed to push some refs to 'git@github.com
解决failed to push some refs to 'git@github.com
解决failed to push some refs to 'git@github.com
 
本文永久更新地址:http://www.linuxdiyf.com/linux/27949.html