dotfiles/files/gitconfig

63 lines
1.9 KiB
Plaintext

[user]
name = %NAME%
email = %EMAIL%
[core]
autocrlf = input
whitespace = fix,space-before-tab,tab-in-indent,trailing-space
excludesfile = /Users/csexton/.gitignore_global
[alias]
st = status
co = checkout
di = diff
wc = whatchanged
br = branch
lg = "log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
unstage = "reset HEAD --"
spencer = log --pretty=format:'%Cred%h%Creset -%Creset %s %Cgreen(%cD) %C(bold blue)<%an>%Creset' --author Spencer --since
since = log --pretty=format:'%Cred%h%Creset -%Creset %s %Cgreen(%cD) %C(bold blue)<%an>%Creset' --author Chris --since
standup = log --pretty=format:'%Cred%h%Creset -%Creset %s %Cgreen(%cD) %C(bold blue)<%an>%Creset' --author Chris --since yesterday
yolo = "!git commit -am 'DEAL WITH IT' && git push -f"
ribbon = tag --force _ribbon origin/master
ketchup = log --patch --reverse --topo-order --first-parent -m _ribbon..origin/master
mergedown = merge --no-ff --log
g = grep --break --heading --line-number
check = "!git g '// todo'; git g '// fix'; git g '// review'; git g 'debugger';"
incoming = "!git remote update -p; git log ..@{u}"
outgoing = log @{u}..
[branch "master"]
remote = origin
merge = refs/heads/master
[color]
ui = auto
[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
[merge]
log = true
[url "git@github.com:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "git@gist.github.com:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[push]
default = simple
[credential]
helper = osxkeychain