Last active
August 20, 2017 22:34
-
-
Save leojweda/6780957ab3ef9254b6581e122620ea60 to your computer and use it in GitHub Desktop.
A shell script that searches for all commits with a particular commit message and revert those commits.
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
#! /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