You can reference commits using the commit message instead of the hash. The “:/” syntax accepts a regex that matches any part of the commit message, returning the youngest matching commit (see docs).
git show :/add # shows the youngest commit with "add" in the message
from https://twitter.com/offlinemark/status/1387833240321417222