Skip to content

Instantly share code, notes, and snippets.

@coldhawaiian
Last active December 19, 2015 07:29
Show Gist options
  • Save coldhawaiian/5918995 to your computer and use it in GitHub Desktop.
Save coldhawaiian/5918995 to your computer and use it in GitHub Desktop.
Diff and Merge Tool Configurations

MsysGit

Add to your user .gitconfig file (use tabs for indents). Paths are for MsysGit, and may not work in Cygwin:

# Default tools
[merge]
    tool = bc3
[diff]
	tool = bc3
# Beyond Compare
[difftool "bc3"]
	cmd = "\"c:/program files (x86)/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\""
[mergetool "bc3"]
	cmd = "\"c:/program files (x86)/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\""
# DiffMerge
[difftool "dm"]
	cmd = C:/Program\\ Files/SourceGear/Common/DiffMerge/sgdm.exe \"$LOCAL\" \"$REMOTE\"

TortoiseGit

DiffMerge

Diff

C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe /t1=%bname /t2=%yname %base %mine

Beyond Compare

Diff

"C:\Program Files (x86)\Beyond Compare 3\BComp.exe" %base %mine /title1=%bname /title2=%yname /leftreadonly

Merge

"C:\Program Files (x86)\Beyond Compare 3\BComp.exe" %mine %theirs %base %merged /title1=%yname /title2=%tname /title3=%bname /title4=%mname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment