zhougong

 

Your branch and remoteBranchName have diverged solution

(zhuan)git pull时解决分支分叉(branch diverged)问题

git pull时出现分支冲突(branch diverged)

$ git status

# On branch feature/worker-interface

# Your branch and 'origin/br_dev' have diverged,

# and have 1 and 4 different commit(s) each, respectively.

解决办法:
1、查看哪个commit冲突
git cherry origin/br_dev

2、回退到冲突的前一个commit
git reset --hard <commitID>

3、更新代码
git pull

zhuanzi https://www.cnblogs.com/coffy/p/7650564.html

posted on 2018-07-06 15:12  zhougong  阅读(208)  评论(0编辑  收藏  举报

导航