Get Git commit hash from commit message
<p>Is it possible to get the hash of a commit from a commit message?</p>

<p>I ran the following <code>git log | grep tap</code> and got a list of commit messages only, no hashes. </p>

<p>I need to cherry-pick a few of the listed commits, but don't want to manually search for them all to find the commit hashes.</p>