Skip to content

Instantly share code, notes, and snippets.

@peterwooley
Forked from oli/gist:1637874
Created July 24, 2012 16:12
Show Gist options
  • Save peterwooley/3170934 to your computer and use it in GitHub Desktop.
Save peterwooley/3170934 to your computer and use it in GitHub Desktop.
~/.gitconfig from @boblet, for http://oli.jp/2012/git-powerup
# ~/.gitconfig from @boblet
# initially based on http://rails.wincent.com/wiki/Git_quickstart
[color]
ui = auto
interactive = auto
[repack]
usedeltabaseoffset = true # >git 1.5
[alias]
s = status
a = !git add . && git status
au = !git add -u . && git status
aa = !git add . && git add -u . && git status
c = commit
cm = commit -m
ca = commit --amend # careful
ac = !git add . && git commit
acm = !git add . && git commit -m
l = log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
ll = log --stat --abbrev-commit
d = diff --color-words
dh = diff --color-words head
master = checkout master
spull = svn rebase
spush = svn dcommit
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t => \\2/' | sort
[user]
name = Peter Wooley
email = [email protected]
[github]
user = peterwooley
token =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment