切换分支的方法

3 阅读1分钟
  1. 保留某一边版本

保留当前分支版本(ours)

git checkout --ours <文件>

保留对方分支版本(theirs)

git checkout --theirs <文件>

  1. 保留当前编辑器里的版本