Skip to content

Instantly share code, notes, and snippets.

@alabeduarte
Last active January 27, 2017 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alabeduarte/7e33a04d6e045911c41844e44b4b1974 to your computer and use it in GitHub Desktop.
Save alabeduarte/7e33a04d6e045911c41844e44b4b1974 to your computer and use it in GitHub Desktop.
git show by commit message regex
$ MESSAGE='Fix'
$ git show $(git log --oneline --reverse | grep ${MESSAGE} | awk '{print$1}' | xargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment