您的位置:首页 > 编程语言

本地代码仓库push时:error: failed to push some refs to

2016-07-22 00:00 411 查看
摘要: 本地代码仓库push时:error: failed to push some refs to

本地代码仓库push至Git仓库

命令:git push -u origin master

出现错误:

error: failed to push some refs to 'git@git.oschina.xxx/xxx.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'Note about
fast-forwards' section of 'git push --help' for details.

解决方法:

git pull --rebase origin master
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: