2013-11-01 58 views
2

我剛剛安裝OS X Maverics和Xcode的5.0.1,但現在當我嘗試使用git mergetoolopendiff我得到這個錯誤:錯誤上使用Git合併工具用後了opendiff小牛的Xcode 5.0.1

Normal merge conflict for 'Assets/Scripts/Characters/MobAI.cs': 
{local}: modified file 
{remote}: modified file 
Hit return to start merge resolution tool (opendiff): 
2013-11-01 11:51:11.980 opendiff[1706:1007] too few arguments 
2013-11-01 11:51:11.985 opendiff[1706:1007] usage: opendiff file1 file2 [-ancestor ancestorFile] [-merge mergeFile] 

xcode-select路徑是/Applications/Xcode.app/Contents/Developer/

任何想法?

回答

4

這是我的情況:

git config -l 

(簡稱輸出)

merge.tool=opendiff 
mergetool.opendiff.cmd=/usr/bin/opendiff $2 $5 -merge $1 

我如何固定它:

git config --global --unset mergetool.opendiff.cmd 
+0

你的回答永遠是更有幫助的(並獲得更多的選票)如果你包括一些解釋爲什麼和如何(如果可以的話)。 ;) –

+0

這對我有效。 @djserva你應該接受如果這個工作的答案。 –

相關問題