When you use the --grep=<pattern>
option with git log
, it performs a case-sensitive matching by default. If you wish to perform a case-insensitive match instead, you can simply use the -i
flag (or --regexp-ignore-case
), for example, like so:
git log --grep="Updated" -i
Or, using --regexp-ignore-case
:
git log --grep="Updated" --regexp-ignore-case
This post was published by Daniyal Hamid. Daniyal currently works as the Head of Engineering in Germany and has 20+ years of experience in software engineering, design and marketing. Please show your love and support by sharing this post.