Skip to content

Instantly share code, notes, and snippets.

@jamesmacaulay
Created November 18, 2008 21:42

Revisions

  1. jamesmacaulay renamed this gist Nov 18, 2008. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. jamesmacaulay created this gist Nov 18, 2008.
    8 changes: 8 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    function git-revert-batch {
    echo "$@" | xargs -n1 git revert --no-commit
    }
    alias grb='git-revert-batch'

    # use like:
    # grb ee5c95a 981da8b
    # list commits in reverse order, and it's ready to make one neat+tidy revert-commit