title: How do I git grep for a string including a ">"?
body: <p><code>git grep</code> seems to have simpler rules than regular GNU <code>grep</code>, which will allow you to <a href="https://stackoverflow.com/q/4262150/209139">search for tabs</a> and to <a href="https://stackoverflow.com/q/11234858/209139">escape special characters with a backslash</a>. I am trying to find occurrences of the string <code>-&gt;upload</code>, and no way of escaping it seems to work.</p>
  
  <p>How do I run <code>git grep "-&gt;upload"</code>?</p>
  
  <pre class="lang-none prettyprint-override"><code>$ git grep -&gt;upload
  No output; return 0
  $ git grep "-&gt;upload"
  error: unknown switch `&gt;'
  git grep "\-\&gt;upload"
  No output; return error
  $ git grep '-&gt;upload'
  error: unknown switch `&gt;'
  </code></pre>