Skip to content

Instantly share code, notes, and snippets.

@manolenso
Created October 2, 2013 14:54
Show Gist options
  • Save manolenso/6795045 to your computer and use it in GitHub Desktop.
Save manolenso/6795045 to your computer and use it in GitHub Desktop.
windows gitconfig
[merge]
tool = p4merge
log = true
[user]
name =
email =
[core]
editor = vim
autocrlf = true
safecrlf = false
hideDotFiles = false
whitespace = cr-at-eol
filemode = false
[mergetool "p4merge"]
path = C:/Program Files/Perforce/p4merge.exe
cmd = \"C:/Program Files/Perforce/p4merge.exe\" \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"
trustExitCode = false
[mergetool]
keepBackup = false
[diff]
guitool = p4merge
tool = p4merge
renames = copy
renamelimit = 0
[difftool "p4merge"]
path = C:/Program Files/Perforce/p4merge.exe
cmd = \"C:/Program Files/Perforce/p4merge.exe\" \"$LOCAL\" \"$REMOTE\"
[push]
default = matching
[alias]
tree = log --pretty=oneline --date-order --graph --decorate
last = log -1 HEAD
co = checkout
cm = commit -m
cma = commit -a -m
st = status
br = branch
pom = push origin master
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
[branch]
autosetupmerge = true
[difftool]
prompt = false
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment