A shell script that searches for all commits with a particular commit message and revert those commits.
#! /bin/sh | |
git log --pretty=oneline --grep="$1" | awk '{print $1}' | xargs git revert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment