Skip to content

Instantly share code, notes, and snippets.

@salex89
Last active May 24, 2017 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salex89/f99670aeea68a9154a4da632aa911977 to your computer and use it in GitHub Desktop.
Save salex89/f99670aeea68a9154a4da632aa911977 to your computer and use it in GitHub Desktop.
Example gitconfig file. Sets up Meld on Windows for merging and diff, enables rerere and skips creating .orig files.
[user]
email = <email>
name = Aleksandar Stojadinovic
[merge]
tool = meld
[mergetool]
keepBackup = false
[mergetool "meld"]
trustExitCode = true
path = C:\\Program Files (x86)\\Meld\\Meld.exe
cmd = meld "$LOCAL" "$BASE" "$REMOTE" --auto-merge --output "$MERGED"
trustExitCode = true
[diff]
tool = meld
[difftool]
prompt = false
[difftool "meld"]
trustExitCode = true
cmd = meld "$LOCAL" "$REMOTE"
[rerere]
enabled = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment