Skip to content

Instantly share code, notes, and snippets.

@peritus
Created September 6, 2010 10:18

Revisions

  1. peritus renamed this gist Jan 20, 2011. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions gistfile1.txt → ~/.gitconfig
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,8 @@
    [alias]
    st = status
    sts = "!f() { git ls-files --exclude-standard -t -u -s -m -d $@ | sed -e 's/C.*\t/C /' ; } ; f"
    st = status -uall
    sts = status -uall -sb
    d = diff
    puff = pull --ff-only
    dw = diff --color-words
    dc = diff --cached
    dcw = diff --cached --color-words
  2. peritus created this gist Sep 6, 2010.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    [alias]
    st = status
    sts = "!f() { git ls-files --exclude-standard -t -u -s -m -d $@ | sed -e 's/C.*\t/C /' ; } ; f"
    d = diff
    dw = diff --color-words
    dc = diff --cached
    dcw = diff --cached --color-words
    lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset' --abbrev-commit --date=relative
    log1 = log --pretty=oneline --abbrev-commit --decorate
    file-blame = !git ls-files | xargs -n1 -i{} git log -1 --pretty=format:\"%ci {}\" -- {}
    commit-crap = commit -m `curl -s 'http://whatthecommit.com/' | grep '<p>' | cut -c4-`