雖然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 就可以了