I have a number of files containing a string foo
. Also, I added foo
to the new and old files with a certain commit.
I tried Case-insensitive git pickaxe search
git log -S foo -i --oneline
but it shows only commit titles.
I tried
git diff [commit] [prev_commit] | grep foo
but it does not show filenames. I just want to get a list of created or modified files with foo
string.