Skip to content

Instantly share code, notes, and snippets.

Last active Aug 20, 2017
What would you like to do?
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