How to Do Case-Insensitive Matching With "git log --grep" Command?

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

Hope you found this post useful. It was published . Please show your love and support by sharing this post.