If you have the latest git, run this command line once:
git config merge.tool tortoisemerge
Important: Do not add the .exe extension to the command.
If this fails, or if you want to add another merge tool that git doesn't know about, do the following:
Open one of the following in the editor:
- 64-bit git:
C:\Program Files\Git\mingw64\share\git-gui\lib\mergetool.tcl - 32-bit git:
C:\Program Files (x86)\Git\share\git-gui\lib\mergetool.tcl
Add something like mergetool.tcl:
tortoisemerge { set cmdline [list TortoiseMerge.exe -base:"$BASE" -mine:"$LOCAL" -theirs:"$REMOTE" -merged:"$MERGED"] }
Put a new turtle entry above this other code:
default { error_popup [mc "Unsupported merge tool '%s'" $tool] return }
Bonus example:
To use diffgerge SourceGear, add this to mergetool.tcl:
diffmerge { set cmdline [list "C:/Program Files (x86)/SourceGear/DiffMerge/DiffMerge.exe" --merge --result=$MERGED $LOCAL $BASE $REMOTE] }
Chris Dragon Apr 13 '13 at 3:58 a.m.
source share