Skip to content

Instantly share code, notes, and snippets.

@buithehoa
Created February 26, 2020 08:08
Show Gist options
  • Save buithehoa/a3ffc2b471e33bb12481188cea1fa787 to your computer and use it in GitHub Desktop.
Save buithehoa/a3ffc2b471e33bb12481188cea1fa787 to your computer and use it in GitHub Desktop.
git log --pretty=oneline | grep 'comment text' | cut -d ' ' -f1 | xargs -n1 git revert --no-edit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment