Get Git commit hash from commit message -
is possible hash of commit commit message?
i ran following git log | grep tap , got list of commit messages only, no hashes.
i need cherry-pick few of listed commits, don't want manually search them find commit hashes.
yep can.
you have minor mistake in command:
correct command use --grep flag log , not unix command after pipe |
git log --grep=".. text need find ..."
git log --grep=<pattern>limit commits output ones log message matches specified pattern (regular expression).
with more 1
--grep=<pattern>, commits message matches of given patterns chosen (but see--all-match).when
--show-notesin effect, message notes matched if part of log message.

Comments
Post a Comment