In Git, there are numerous ways to refer to a commit, including the full SHA hash or a shortened form of the hash (say, the first 6 characters or so). You can also name commits using a "friendly" syntax, like HEAD, HEAD^, HEAD^^, HEAD~3, and so on.
Given an arbitrary commit in SHA hash form, is there a tool in Git to find a "friendly" name for said commit?
If I use git-show-branch
, I get a list of revisions in "friendly" form, so I feel like there must be a way...I just can't find a tool to do it.