Skip to content

Instantly share code, notes, and snippets.

@rupl
Created March 23, 2012 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rupl/2172739 to your computer and use it in GitHub Desktop.
Save rupl/2172739 to your computer and use it in GitHub Desktop.
Starter .gitconfig
[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 = green
changed = yellow
untracked = red
[alias]
st = status
cm = commit
br = branch
co = checkout
df = diff
dc = diff --cached
lg = log -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
# Show files ignored by git:
ign = clean -dXn
rhh = reset --hard HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment