码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2021-06-19 18:56:51      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:details   class   style   not   current   问题   解决   --help   col   

问题:

1 error: failed to push some refs to 
2 hint: Updates were rejected because the tip of your current branch is behind
3 hint: its remote counterpart. Integrate the remote changes (e.g.
4 hint: ‘git pull ...‘) before pushing again.
5 hint: See the ‘Note about fast-forwards‘ in ‘git push --help‘ for details.

 

解决:不同的本地仓库上传至远程仓库导致上传出错的问题,在上传前输入以下代码先pull一次再push:

git pull origin master --allow-unrelated-histories

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

标签:details   class   style   not   current   问题   解决   --help   col   

原文地址:https://www.cnblogs.com/unnerd/p/14901595.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!