Skip to content

Instantly share code, notes, and snippets.

@oisin
Created October 5, 2011 15:48
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 oisin/1264779 to your computer and use it in GitHub Desktop.
Save oisin/1264779 to your computer and use it in GitHub Desktop.
Sample git config with aliases and log formatting
[user]
name = Your Name Here
email = Your Name Here
[diff]
[color]
ui = auto
[alias]
st = status
ci = commit
co = checkout
di = diff
dc = diff --cached
amend = commit --amend
aa = add --all
head = !git l -1
h = !git head
r = !git --no-pager 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
b = branch
[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