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 ..." 

enter image description here


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-notes in effect, message notes matched if part of log message.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -