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

[rejected] master -> master (fetch first)(non-fast forward)

时间:2018-12-20 14:37:21      阅读:301      评论:0      收藏:0      [点我收藏+]

标签:war   its   bec   ast   update   erp   需要   das   use   

git push 时候遇到的错误:

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.

错误原因:

两个不同的项目需要先合并。

解决办法:

git pull origin master –allow-unrelated-histories

 

[rejected] master -> master (fetch first)(non-fast forward)

标签:war   its   bec   ast   update   erp   需要   das   use   

原文地址:https://www.cnblogs.com/xiaojianliu/p/10148418.html

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