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

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -