Instantly share code, notes, and snippets.

@craigtp /.gitconfig
Last active Jul 17, 2018

Embed
What would you like to do?
[user]
name = [INSERT YOUR NAME HERE]
email = [INSERT YOUR EMAIL ADDRESS HERE]
[core]
autocrlf = true
excludesfile = "C:/Users/craig/gitignore_global.txt"
;excludesfile = "C:/Users/craig/gitignore_global.txt"
editor = 'C:/Program Files/Notepad++/notepad++.exe' -multiInst -nosession ; For 64-bit Notepad++
;editor = 'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -nosession ; For 32-bit Notepad++
preloadindex = true
fscache = true
[diff]
tool = bc3
[difftool "bc3"]
cmd = \"c:/Program Files (x86)/Beyond Compare 3/BCompare.exe\" \"$LOCAL\" \"$REMOTE\" -lro -lefttitle='remote' -righttitle='local' -solo -expandall
[difftool]
prompt = false
[merge]
tool = bc3
[mergetool "bc3"]
cmd = \"c:/Program Files (x86)/Beyond Compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\" -ro -lefttitle='local' -centertitle='base' -righttitle='other' -automerge -reviewconflicts -solo
trustExitCode = true
[alias]
st = status
br = branch
dt = difftool --dir-diff
vd = difftool --dir-diff
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
maint = fetch -p
nm = "!f() { git branch --no-merged $1; }; f"
m = "!f() { git branch --merged $1; }; f"
whoami = var GIT_COMMITTER_IDENT
all = "!f() { ls | xargs -I{} git -C {} $1; }; f"
inc = log ..@{u}
out = log @{u}..
aliases = config --get-regexp alias
[mergetool]
keepBackup = false
prompt = false
[difftool "sourcetree"]
cmd = 'C:/Program Files (x86)/Beyond Compare 3/BComp.exe' \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
cmd = 'C:/Program Files (x86)/Beyond Compare 3/BComp.exe' \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
trustExitCode = true
[push]
default = simple
[gc]
auto = 256
[gpg]
program = C:\\Utils\\GnuPG\\bin\\gpg.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment