Skip to content

Instantly share code, notes, and snippets.

@henryalee
Created June 21, 2013 17:21
Show Gist options
  • Save henryalee/5832789 to your computer and use it in GitHub Desktop.
Save henryalee/5832789 to your computer and use it in GitHub Desktop.
My .gitconfig with colors and shortcuts and stuff.
[user]
name = Henry A. Lee
email = henry.a.lee@gmail.com
[alias]
st = status
cm = commit
br = branch
co = checkout
d = diff
dc = diff --cached
ds = diff --staged
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
[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 = yellow
changed = green
untracked = cyan
[color]
ui = true
[color "diff"]
whitespace = red reverse
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
autocrlf = input
editor = vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment