Skip to content

Instantly share code, notes, and snippets.

@henryalee
Created August 13, 2012 18:49
Show Gist options
  • Save henryalee/3343171 to your computer and use it in GitHub Desktop.
Save henryalee/3343171 to your computer and use it in GitHub Desktop.
.gitconfig that makes git commands a little nicer
[user]
name = Henry A. Lee
email = [email protected]
[github]
user = henryalee
token = ...
[alias]
st = status
cm = commit
br = branch
co = checkout
d = diff
dc = diff --cached
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment