git pull時解決分支分叉(branch diverged)問題

git pull時出現分支衝突(branch diverged)git

$ git statusspa

# On branch feature/worker-interfaceit

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

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

解決辦法:
一、查看哪一個commit衝突
git cherry origin/br_devinterface

二、回退到衝突的前一個commit
git reset --hard <commitID>commit

三、更新代碼
git pull分支

相關文章
相關標籤/搜索