author avatar

goromlagche

Wed Aug 19 2020

git log has grep.

git log --grep=“something something”

also can do some cut head etc to read the whole commit(which generally is the goal) at once $git log --grep=“something something” | head -1 | cut -d” ” -f2 | xargs -I{} git show {}