If you want to search a git commit by the commit text, you can use
git show ':/<text>'. As an example, if you want to search for fix nasty bug you can use the command as such git show ':/fix nasty bug'
Or you can just use your agent to do the searching for you...commit 5eb0c11