码迷,mamicode.com
首页 > 其他好文 > 详细

git 版本落后推送错误

时间:2016-02-20 21:31:51      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:

 http://114.215.90.144/student_association/student.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to ‘技术分享http://114.215.90.144/student_association/student.git‘
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. ‘git pull ...‘) before pushing again.
hint: See the ‘Note about fast-forwards‘ in ‘git push --help‘ for details.
 
 
方法一:把本地文件复制一份,然后在把项目从仓库中拉下来
 
方法二:使用git强制推送命令 git push -f all

 

方法三: 第一步 :git push origin +some_branch
                 第二步:git push -u origin master

git 版本落后推送错误

标签:

原文地址:http://www.cnblogs.com/Lance--blog/p/5203958.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!