虽然xcode内置强大的git 工具。但是当你工程文件冲突时,就不得不在xcode外合并。

1
2
3
4
5
6
git config --global merge.tool diffmerge
git config --global mergetool.diffmerge.cmd "/Applications/DiffMerge.app/Contents/MacOS/diffmerge --merge --result=\$MERGED \$LOCAL \$BASE \$REMOTE"
git config --global mergetool.keepBackup false
 
git config --global diff.tool diffmerge
git config --global difftool.diffmerge.cmd "/Applications/DiffMerge.app/Contents/MacOS/diffmerge \$LOCAL \$REMOTE"

 安装diffmerge

 在git仓库目录下运行 git mergetool 就可以了 


相关文章:

  • 2022-01-01
  • 2021-12-21
  • 2021-12-21
  • 2021-12-21
猜你喜欢
  • 2021-07-25
  • 2022-12-23
  • 2022-01-05
  • 2022-01-01
  • 2021-07-02
  • 2022-12-23
  • 2021-05-04
相关资源
相似解决方案