Skip to content

Instantly share code, notes, and snippets.

@tmoreira2020
Created June 14, 2012 15:15
Show Gist options
  • Save tmoreira2020/2930919 to your computer and use it in GitHub Desktop.
Save tmoreira2020/2930919 to your computer and use it in GitHub Desktop.
Rollbacks a git commit
function gitrollback() { git diff -p -R "$1"^ "$1" > "$1".rollback ;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment