Skip to content

Instantly share code, notes, and snippets.

@jwdonley
Created August 28, 2011 02:41
Show Gist options
  • Save jwdonley/1176170 to your computer and use it in GitHub Desktop.
Save jwdonley/1176170 to your computer and use it in GitHub Desktop.
posh git setup codez
[core]
autocrlf = true
editor = notepad.exe
#!/bin/sh
path="$1"
old="$2"
new="$5"
"C:/Program Files (x86)/SourceGear/DiffMerge/DiffMerge.exe" "$old" "$new" --title1="Old" --title2="New $path"
#!/bin/sh
localPath="$2"
basePath="$1"
remotePath="$3"
resultPath="$4"
if [ ! -f $basePath ]
then
basePath="c:/Users/Joseph/diffmerge-empty"
fi
"C:/Program Files (x86)/SourceGear/DiffMerge/DiffMerge.exe" --merge --result="$resultPath" "$localPath" "$basePath" "$remotePath" --title1="Mine" --title2="Merged: $4" --title3="Theirs"
[merge]
tool = diffmerge
[mergetool "diffmerge"]
cmd = "c:/Users/<username>/GitConfigFiles/diffmerge-merge.sh" "$BASE" "$LOCAL" "$REMOTE" "$MERGED"
trustExitCode = false
keepBackup = false
[diff]
tool = diffmerge
external = c:/Users/<username>/GitConfigFiles/diffmerge-diff.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment