version control - How can I use git grep as effectively as possible? -


i know can use fgrep search fast without using regexes.
can use grep search regexes.
seems git grep lot faster these options when use in git repos.
need guidance on how use in order more productive.
right not thing git grep string in files.
want how can improve myself , exploit git grep better?

here's 1 way can make git grep faster in cases: it comes fixed strings flag:

-f --fixed-strings 

use fixed strings patterns (don’t interpret pattern regex).

so if don't need use regex multiple forms of pattern (i.e. need exact match), use this.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -