Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@h0tw1r3
Created September 21, 2012 04:03
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 h0tw1r3/3759665 to your computer and use it in GitHub Desktop.
Save h0tw1r3/3759665 to your computer and use it in GitHub Desktop.
My git config
[core]
excludesfile = ~/.gitexcludes
[alias]
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"
[color]
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
[http]
postBuffer = 24288000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment