当前位置:首页 > 开发 > 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

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号