Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
Take a look at stackoverflow.com/questions/3616221 – skolima Nov 5 '12 at 11:23

closed as off topic by random Jan 26 at 2:47

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

up vote 19 down vote accepted

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

share|improve this answer
2  
I searched mount repo:mongodb/mongo but now it says "Invalid search query. Try quoting it. " – lulalala Mar 7 '12 at 2:05
@lulalala, looks like this is a bug. Their help still says the same. – whitequark Mar 7 '12 at 9:53
3  
@whitequark: no it is not a bug. See stackoverflow.com/a/3616259/6309 – VonC Mar 18 '12 at 10:42
3  
@lulalala: See stackoverflow.com/a/3616259/6309 in order to avoid your error message "Invalid search query. Try quoting it." – VonC Mar 18 '12 at 10:42
Is there a particular reason why it was decided that we shouldn't get a code search bar right on the repo's page? It's not like the functionality doesn't exist, if you own the repo you have access to this feature. – Cyle Jan 23 at 21:21

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