-
-
Save SanCoder-Q/50d089d216885ed3f6a2515735639012 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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