How to search for a string in a local repository on Github


You’re trying to find some text in a local repo on Github. You’re confused because the big search bar at the top left seems to want to search across the entire Github, not just this repo.


In the big search box type:

repo:spatie/ text-invers

repo refers to the repo search specific command
spatie/ is the actual name of the repo
text-invers is the text you are looking for



Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top