I think I have seen on twitter a way to specify a commit by providing a String that is contained in its message. So with a history like this
- alpha <-- current head
- beta
- gamma
- gamut
- omega
git checkout <magic stuff>'gam'
would checkout the commit with commit message gamma
.
What was the syntax for this?
Note 1: I'm not actually sure that was for checkout
, might have been for a different command, but I'm hoping for one that is universally applicable.
Note 2: It might not have been specifying a single commit but the range starting at that commit and ending at the current HEAD.