Created
August 28, 2011 02:41
-
-
Save jwdonley/1176170 to your computer and use it in GitHub Desktop.
posh git setup codez
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
autocrlf = true | |
editor = notepad.exe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
path="$1" | |
old="$2" | |
new="$5" | |
"C:/Program Files (x86)/SourceGear/DiffMerge/DiffMerge.exe" "$old" "$new" --title1="Old" --title2="New $path" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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