git拉取远端分支merge到本地分支解决冲突的命令

  1. git fetch origin master
  2. git merge origin/master
  3. 解决冲突
Automatic merge failed; fix conflicts and then commit the result.
  1. 冲突解决完成执行 git add . git commit -m “merge master”