Is there any way to get the SHA of a commit from its message?
Posted
by Benjol
on Stack Overflow
See other posts from Stack Overflow
or by Benjol
Published on 2010-06-09T06:35:56Z
Indexed on
2010/06/09
8:32 UTC
Read the original article
Hit count: 174
git
When doing a git tag
, I'm not always great at remembering if HEAD~6 (for example) is inclusive or exclusive.
Given that most of my commits are prefixed with an issue number, I wondered if there is some magic command for searching for the commit SHA from part of its message.
I know it's easy to do a git log
and work from there, but I want more easy :)
© Stack Overflow or respective owner