'Finding a commit in Git

ALL

I'm trying to find a commit in mt git based project.

Unfortunately running

git log | grep -i <some_phrase>

gives only the commit comment and not the SHA.

Is there some git command can use to find a commit SHA?

TIA!!!

git


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source