首页 > 其他 > 详细

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

时间:2021-06-19 09:19:10      阅读:17      评论:0      收藏:0      [点我收藏+]

问题:

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!