请稍等 ...
×

采纳答案成功!

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

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下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号