git grep command

The git grep command can help you find any string or regular expression in any of the files in your source code, even older versions of your project.