美文网首页GIT
You have divergent branches and

You have divergent branches and

作者: Alen_ab56 | 来源:发表于2022-06-19 08:29 被阅读0次

https://blog.csdn.net/qq_45677671/article/details/122574671

解决方法

分析:这是由于你拉取pull分支前,进行过merge合并更新分支操作,导致版本不一致

第一种解决方法:

执行git config pull.rebase false

默认将pull下来的代码与现有改动的代码进行合并

但是可能会造成代码冲突,需要处理下这个问题

第二种解决方法:回退到合并之前的代码,在进行pull拉取最新代码

相关文章

网友评论

    本文标题:You have divergent branches and

    本文链接:https://www.haomeiwen.com/subject/vhufvrtx.html