git:列出包含指定文本的文件(git:listing files that ever contained specified text)
我需要列出当前或历史中某个时刻包含指定文本的所有文件。无论如何都要这样做吗?
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?
最满意答案
你可以做到:
git grep 'the specified text' $(git rev-list --all)You could do with:
git grep 'the specified text' $(git rev-list --all)更多推荐
发布评论