Easiest way to do "git grep" for multiple strings?
git
Solution
I find it easiest to use extended regular expressions `-E` and `|` (or).
git grep -E 'str1|str2|str3' -- *strings*txt
Problem
I often need to search for lines containing multiple strings/patterns in a git project e.g. ``` git grep -i -e str1 --and -e str2 --and -e str3 -- *strings*txt ``` This gets tedious very quickly. Is there a better way to do this?