coffy

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

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-01-11
  • 2021-04-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-26
  • 2022-12-23
  • 2021-12-07
  • 2021-09-20
  • 2021-09-20
  • 2021-09-20
  • 2021-07-16
相关资源
相似解决方案