请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

git push origin master出错

报错如下,请问老师该如何解决,

Administrator@PC201607172310 MINGW64 /e/node/ice-s (master)

$ git push origin master

To git@git.oschina.net:issmile/ice.git

 ! [rejected]        master -> master (non-fast-forward)

error: failed to push some refs to 'git@git.oschina.net:issmile/ice.git'

hint: Updates were rejected because the tip of your current branch is behind

hint: its remote counterpart. Integrate the remote changes (e.g.

hint: 'git pull ...') before pushing again.

hint: See the 'Note about fast-forwards' in 'git push --help' for details.


正在回答 回答被采纳积分+3

1回答

Scott 2017-08-06 12:24:22

本地跟线上没有合并成最新版代码。本地这样操作一下:


git fetch

git merge origin/master

git push origin master

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信