Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to: find string in GitHub repo?

Tags:

git

github

search

I'm searching a fairly major GitHub repo for an error that's a) a big one b) easily fixed. I know where it is from the frontend, I just need to search the entire GitHub repo for a string.

How do I do that?

like image 753
Peter David Carter Avatar asked Oct 08 '17 16:10

Peter David Carter


2 Answers

I'd clone the repo (which you'd need to do anyway if you want to create a PR for it) and git grep it:

$ git grep string_to_look_for
like image 191
Mureinik Avatar answered Sep 21 '22 09:09

Mureinik


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

enter image description here

like image 29
nikki ricks Avatar answered Sep 18 '22 09:09

nikki ricks