knowncitizen
5/28/2013 - 4:40 PM

gitconfig aliases

gitconfig aliases

[alias]
    g = grep -n
    st = status -sb
    ci = commit
    br = branch
    co = checkout
    df = diff
    lg = log -p
    lol = log --graph --decorate --pretty=oneline --abbrev-commit
    lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
    ls = ls-files
    last = cat-file commit HEAD
    unadd = reset HEAD
    staged = diff --cached
    amend = commit --amend -C HEAD
    find = !sh -c 'git ls-tree -r --name-only HEAD | grep --color $1' -
    subup = submodule update --init --recursive