Skip to content

Instantly share code, notes, and snippets.

@jcrobak
Created Jan 16, 2011
Embed
What would you like to do?
My git config.
# great tips from http://cheat.errtheblog.com/s/git and
# http://mislav.uniqpath.com/2010/07/git-tips/
[color]
ui = auto
[color "branch"]
current = red bold
local = blue
remote = green
[color "diff"]
meta = black
frag = magenta
old = red
new = green
whitespace = red reverse
[color "status"]
added = green bold
changed = yellow bold
untracked = cyan bold
[core]
# tabs are an error, as are trailing spaces
whitespace=tab-in-indent,trailing-space
[alias]
st = status
ss = status -sb
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
ls = log --oneline --decorate
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment