# local user config, usernames, etc [include] path=~/.gitconfig-local [core] editor = gvim --nofork [merge] tool = meld [diff] tool = meld [color] diff = auto status = auto branch = auto interactive = auto ui = auto [alias] # Shorten some often used commands c = commit co = checkout ss = status s = status -s ds = diff --staged amend = commit --amend -c HEAD oops = reset --soft HEAD~1 kris = pull --rebase ignore = !git update-index --assume-unchanged unignore = !git update-index --no-assume-unchanged ignored = !git ls-files -v | grep "^[[:lower:]]" undo = reset --soft HEAD^ # various pretty loggers from various places l = log --pretty=oneline --abbrev-commit lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative lc = log ORIG_HEAD.. --stat --no-merges # from http://blog.kfish.org/2010/04/git-lola.html lol = log --graph --decorate --pretty=oneline --abbrev-commit lola = log --graph --decorate --pretty=oneline --abbrev-commit --all ll = log --graph --date=short [push] default = simple