Skip to content

Instantly share code, notes, and snippets.

@gogojimmy
Created January 12, 2012 02:58
Show Gist options
  • Save gogojimmy/1598284 to your computer and use it in GitHub Desktop.
Save gogojimmy/1598284 to your computer and use it in GitHub Desktop.
My gitconfig file
[user]
name = gogojimmy
email = jimmy@gogojimmy.net
[alias]
co = checkout
st = status
br = branch
ci = commit
di = diff
dc = diff --cached
amend = commit --amend
aa = add --all
head = !git l -1
h = !git head
r = !git l -20
ra = !git r --all
ff = merge --ff-only
pullff = pull --ff-only
noff = merge --no-ff
l = log --graph --abbrev-commit --date=relative
la = !git l --all
div = divergence
gn = goodness
gnc = goodness --cached
fa = fetch --all
pom = push origin master
br = branch
ds = diff --stat=160,120
dh1 = diff HEAD~1
[apply]
whitespace = nowarn
[core]
editor = /usr/bin/vim
autocrlf = input
whitespace = trailing-space,space-before-tab,indent-with-non-tab
[format]
pretty=format:%C(yellow)%h%Creset -%C(red)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset
[merge]
tool = vimdiff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment