【发布时间】:2012-05-12 11:33:57
【问题描述】:
在使用git grep 搜索 git 存储库时,有没有办法排除某些路径/目录/文件?类似于普通grep 命令中的--exclude 选项?
我需要使用git grep,因为直接使用grep 在大型git 存储库上运行速度太慢。
【问题讨论】:
-
在 bash 上执行此操作可能是一种解决方法:stackoverflow.com/questions/216995/…
-
此功能是在 1.9.0 中添加的 see my answer below