您的位置:首页 > 其它

git 版本落后推送错误

2016-02-20 20:43 465 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: