当前位置:首页 > 开发 > Web前端 > 前端 > 正文

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

发表于: 2014-10-10   作者:qiaolevip   来源:转载   浏览:
摘要: $ git push joe prod-2295-1 To git@git.dianrong.com:joe.le/dr-frontend.git ! [rejected] prod-2295-1 -> prod-2295-1 (non-fast-forward) error: failed to push some refs to 'git@git.dianron
$ git push joe prod-2295-1

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

 

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

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

编辑推荐
首先在网站中新建了一个project,包含README.md文件,之后的push出错一部分就要归咎于这个文件。 先
首先在网站中新建了一个project,包含README.md文件,之后的push出错一部分就要归咎于这个文件。 先
eclipse git pull 时报错: The current branch is not configured for pull No value for key bran
*Export Aborted Export aborted because fatal Lin error were founds. These are listed in the p
前些天重现安装了Eclipse,在签名打包APK时出现了如下错误: Export aborted because fatal lint er
Android 打包 签名 eclipse 错误 Export aborted because fatal lint errors were found Android 下
最近用Eclipse签名打包时,出现一个错误,如图 解决办法是:打开Windows→Preferences→Android→Li
Eclipse启动提示javaw.exe in your current PATH、No java virtual machine 第一次运行Eclipse或者
在用户现场做KVM虚拟机与VMware的对比测试中,用一个客户端程序查询大批量的数据,VMware虚拟机可以
【转自】http://www.developer.com/java/data/article.php/3648736/Eclipse-Tip-Define-Custom-Cont
版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号