Skip to content

Instantly share code, notes, and snippets.

@jcrobak
Created January 16, 2011 22:56
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 jcrobak/782238 to your computer and use it in GitHub Desktop.
Save jcrobak/782238 to your computer and use it in GitHub Desktop.
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