I need to list all the files that currently or at some point in history contained a specified text.Is there anyway to do that?

有帮助吗?

解决方案

You could do with:

git grep 'the specified text' $(git rev-list --all)
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top