How do you search for something under files under a single repository (say mongodb). Search github at the top seems to search all files under github though

link|improve this question

33% accept rate
feedback

1 Answer

up vote 14 down vote accepted

Add a repo:username/repository search term, e.g. repo:mongodb/mongo in your case.

link|improve this answer
2  
I searched mount repo:mongodb/mongo but now it says "Invalid search query. Try quoting it. " – lulalala Mar 7 at 2:05
@lulalala, looks like this is a bug. Their help still says the same. – whitequark Mar 7 at 9:53
1  
@whitequark: no it is not a bug. See stackoverflow.com/a/3616259/6309 – VonC Mar 18 at 10:42
1  
@lulalala: See stackoverflow.com/a/3616259/6309 in order to avoid your error message "Invalid search query. Try quoting it." – VonC Mar 18 at 10:42
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.