【发布时间】:2019-10-05 20:34:15
【问题描述】:
如何通过管道向git grep 发送我想要搜索特定模式的文件列表?
具体来说,我这样做:
git grep -l 'string to search'
我想对上一次搜索的结果文件再做一次git grep。
尝试
git grep -l -e 'string to search' --and -e 'another string'
没有给出任何结果,但我知道有匹配项
在做
git grep -l 'string to search' | git grep -l 'another string'
给出与git grep -l 'another string'相同的结果
【问题讨论】: