`

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

    博客分类:
  • git
阅读更多
$ git push joe prod-2295-1

To git@git.com:joe.le/frontend.git
 ! [rejected]        prod-2295-1 -> prod-2295-1 (non-fast-forward)
error: failed to push some refs to 'git@git.com:joe.le/frontend.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.

W510@W510-PC /D/git/frontend (prod-2295-1)
$ git push -u  joe prod-2295-1 -f
Counting objects: 827, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (188/188), done.
Writing objects: 100% (456/456), 139.96 KiB | 0 bytes/s, done.
Total 456 (delta 359), reused 343 (delta 267)
To git@git.com:joe.le/frontend.git
 + 4bd5d08...cf736f4 prod-2295-1 -> prod-2295-1 (forced update)
Branch prod-2295-1 set up to track remote branch prod-2295-1 from joe.

 

原因:自己分支版本低于主版本

解决:

$ git push -u  joe prod-2295-1 -f

 

更多实例应用扫码体验:

 

分享到:
评论
3 楼 Mr.Cheney 2016-03-10  
乔乐 哈哈, 我是43的郑刚。百度搜这个问题,居然搜到你的博客了
2 楼 qiaolevip 2015-08-06  
hi,伙计,多人开发就会提交到自己的repository,origin是基础git repository的。

gar_odie 写道
矮马,大哥你的取的名字太非主流了。
git push -u origin(远程)master -f 吧??

1 楼 gar_odie 2015-05-29  
矮马,大哥你的取的名字太非主流了。
git push -u origin(远程)master -f 吧??

相关推荐

    T-blog:由node.js服务的个人博客

    会报错error: failed to push some refs to 'git@github.com:fatpandaria/T-blog.git' hint: Updates were rejected because the tip of your current branch is behind,这是因为没有git pull,一般进行push要先...

    a project model for the FreeBSD Project.7z

    A project model for the FreeBSD Project ...The “development release” is the FreeBSD-CURRENT ("-CURRENT") branch and the “production release” is the FreeBSD-STABLE branch ("-STABLE...

    Senfore_DragDrop_v4.1

    Since all demos were developed with the latest version of Delphi, most of the demo forms probably contains references to properties that doesn't exist in earlier versions of Delphi and C++ Builder. ...

    Decompiling Android.pdf

    The following is a detailed exploration of the key concepts covered in the document, including the history and significance of decompilers, the vulnerabilities of virtual machines, and strategies for...

    CG_std_collection[2020].pdf

    Throughout the paper we present rationale behind prominent design choices and alternatives that were ultimately rejected, drawing on insights collected during a multi-year collaboration with ...

    weblogic 8.X 无限制

    The Server is not licensed for this operation.Connection rejected, the server license allows connections from only 5 unique IP addresses. 没有授权 提示5个IP访问的限制 解决办法: 从licensecodes.oracle...

    word自动转化为chm

    However, what bothers you most is not using how many kinds of tools, the Word file, the CHM file and the online documents are all need to be modified, this is the real matter. Once the changing work ...

    AndroidPhotoView

    Useful for when you need to update your UI based on the current zoom/scroll position. Allows the application to be notified when the user taps on the Photo. Sample Application The sample application...

    Git-2.37.1版本 windows64位

    Git-2.37.1,windows64位用。好用的版本。

    Domain-Driven+Design+in+PHP-Packt+Publishing(2017).pdf

    The training was fantastic, and all the concepts that were swirling around in their minds prior to the trip suddenly became very real. However, they were the only two PHP developers in a room full of...

    大学英语精读第二册课后翻译.doc

    3. "It is very likely that he will be rejected by the army because of his bad eyesight." "It is likely that..."的句型用于表达可能性,"because of"引导原因。 4. "The mittee members have conflicting ...

    Access-Template.doc IEEE ACCESS模板,双栏,word格式,

    The abstract must be a concise yet comprehensive reflection of what is in your article. In particular, the abstract must be self-contained, without abbreviations, footnotes, or references. It should ...

    MATLAB车牌汉字识别

    % S rejected because the weight of the top % half is about equal to the wight of the % bottom half closestMatch = 0; end elseif closestMatch == 4 % It thinks it is a U % Euler# can...

    git提交项目到码云步骤及出现问题解决办法

    hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first ...

    大学英语精读2课后翻译题答案解析.doc

    3. "He is very likely to be rejected because of his bad eyesight." 这句话展示了条件句的表达,"be likely to do"(可能做某事)和原因状语。 4. "The committee members have conflicting opinions as to the ...

    UPnP_Programming_Guide

    The UPnP (Universal Plug and Play) Programming Guide is designed to provide developers with a comprehensive understanding of how to use the Linux SDK for UPnP Devices version 1.4. This guide covers ...

    Swift iOS 24-Hour Trainer(Wrox,2016)

    Distribute your applications outside of the App store, allowing you to test your work with real users Review common reasons why apps are rejected by Apple to strengthen your case when submitting your ...

    GetWebPics专业版2.9

    It will help you to collect your own galleries of celebrities, babies, cars, sexy bodies and many others. Build-in picture viewer, thumbnail viewer and fullscreen slideshow with transition effects ...

    Oracle P6 App(移动端TeamMember)

    All fields’ updates will be rejected, but only the fields you do not remove will show in the rejection report. • When you override a status update, you can search for and add code values.

Global site tag (gtag.js) - Google Analytics