Is it possible to git grep for tabs? Is it possible to git grep for tabs? git git

Is it possible to git grep for tabs?


You can work around this by typing a literal tab into your command:

# type it with ^V then tabgit grep '  '


I cannot find a regexp notation for a tab that will work, but it will happily search for a literal tab if you can pass one in. In bash, that would be

git grep $'\t'


On Windows, the following works in PowerShell:

git grep "`t"