如题
在这里插入图片描述之后我再push我的代码就报错,错误信息如下,但是pull、fetch又显示已是最新,令人头秃

To http://git.sankuai.com/scm/myfe/canary.git
 ! [rejected]            feature/double_redpack1.2 -> feature/double_redpack1.2 (non-fast-forward)
error: failed to push some refs to 'http://lurui05@git.sankuai.com/scm/myfe/canary.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.

![在这里插入图片描述](https://img-blog.csdnimg.cn/20190722171724710.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM1NzY1MTI2,size_16,color_FFFFFF,t_70在这里插入图片描述最后这么解决了
对git非常不了解,所以有知道原因的大神欢迎补充

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐