I wanted to search for the commit that either contains the string "hello world" or any commit that included that phrase inside of a file.
git log -SHello World
doesn't work
git log -S'Hello World'
doesn't work
git log -S"hello world"
doesn't work
I have been using: git log -i --grep='hello world'
but this one only works for commit messages.
git log -S 'This repos'
works for me. What version of Git are you using? – Firedrake