且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从 git grep 搜索中排除某些目录/文件

更新时间:2023-09-17 15:02:40

这是不可能的,但是 最近讨论过.链接中建议的解决方法:

It's not possible, but has been discussed recently. Proposed workaround in link:

你可以把*.dll 放到.gitignore 文件然后git grep --exclude-standard.

You can put *.dll to .gitignore file then git grep --exclude-standard.

编辑请参阅onlynone 的答案,因为 git 1.9.0 是可能的.

EDIT see onlynone's answer, since git 1.9.0 it's possible.