git grep
seems to have simpler rules than regular GNU grep
, which will allow you to search for tabs and to escape special characters with a backslash. I am trying to find occurrences of the string ->upload
, and no way of escaping it seems to work.
How do I run git grep "->upload"
?
$ git grep ->upload
No output; return 0
$ git grep "->upload"
error: unknown switch `>'
git grep "\-\>upload"
No output; return error
$ git grep '->upload'
error: unknown switch `>'