Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Searching for -> on Github

Tags:

github

How do I escape the > so I can search for all instances of -> in a github repository?

I have attempted using "->" but that still sees the > as an operator. Is there an escape character I can add so that the search will work?

like image 687
CookieOfFortune Avatar asked Mar 14 '14 16:03

CookieOfFortune


People also ask

How do I search for exact phrases on GitHub?

Users who have been selected for the beta are now able to search select repositories by pressing f on the repository page and entering their desired query. By default, it will return results which exactly match the given query (including word boundaries).

How do I search for a string in GitHub?

You can search an entire repo in github by using the search bar found at the top left corner of the screen. Great answer.


1 Answers

GitHub search is based on elasticsearch, which has reserved characters than you can escape.

'>' and '<' are optional operators used for intervals, and it doesn't seem for that character to be escaped (in the way GitHub is using or has configured ealasticsearch).

like image 142
VonC Avatar answered Sep 28 '22 10:09

VonC