问题
I want to do a case sensitive search for a particular piece of code in a GitHub repository. Is it possible?
I checked https://help.github.com/articles/searching-code/ and didn't find such a syntax rule.
回答1:
Use grep
or git grep
in your local clone. The GitHub search has a lot of limitations. I think the worst of these is that it only shows the first two matches from any file, so I just avoid it whenever possible.
来源:https://stackoverflow.com/questions/31885572/github-how-to-do-case-sensitive-search-for-the-code-in-repository