リポジトリ内の任意のファイルに追加または削除される特定の文字列のすべてのインスタンスを見つける必要があります。
これまで私は試しました
git log -S'string' --all
git log --follow -p path/to/file
git show --pretty="format:" --name-only <hash>
git diff $(git log -S'string' -i --all --pretty="%H") | tee output.txt
さまざまな組み合わせで。
私が取得できるのは、「文字列」に関連するコミットの一部であった何千ものファイルのリストだけです。ある時点で「文字列」が含まれているファイルのみのリストが必要です。