In case you need to check if some string existed on a old version of a file in your repository history, Git provide this command:
$ git log -S'text to search' --oneline --name-statusIn case you have this error message: ''' warning: inexact rename detection was skipped due to too many files. warning: you may want to set your diff.renameLimit variable to at least 1229 and retry the command. '''
You can fix it by setting an upper limit like this:
$ git config diff.renameLimit 99999