Skip to content

Instantly share code, notes, and snippets.

@jamesmacaulay
Created November 18, 2008 21:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jamesmacaulay/26288 to your computer and use it in GitHub Desktop.
Save jamesmacaulay/26288 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment