Skip to content

Instantly share code, notes, and snippets.

Created Sep 21, 2012
What would you like to do?
My git config
excludesfile = ~/.gitexcludes
co = checkout
pv = pull -v
unstage = reset HEAD --
amend = commit -a --amend
last = log -1 HEAD
st = status -s
dh = diff HEAD
dl = diff HEAD^
bl = branch -la
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lgp = log --graph --format=format:'%h -%d %s (%cr) <%an>' --abbrev-commit --date=relative
tree = log --oneline --decorate --graph
permission-reset = "!git diff -p . diff -p | grep -E '^(diff|old mode|new mode)' | sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' | git apply"
ui = auto
diff = auto
status = auto
branch = auto
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
postBuffer = 24288000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment