问题
I would like to search for any mentions of a specific keyword on a GitHub wiki.
Is there any way to do this?
回答1:
I don't know of a native GitHub search which would support that.
I usually use a Google search, like in this example where I search for VREF in the Gitolite documentation pages: https://www.google.com/search?q=vref+site%3Agitolite.com%2Fgitolite%2F
I use the "site:
" search selector to limit the search to a particular subdomain (like the wiki) of a web site:
vref site:user.github.io/aRepo/
But that won't work for wiki.
I find it easier to do a local search by cloning said wiki:
git clone https://github.com/user/yourRepo.wiki
(Take the name of your repo, and add a ".wiki
" to access the git repo associated with said wiki).
回答2:
You can install the GitHub Wiki Search user script in your browser.
来源:https://stackoverflow.com/questions/12535602/search-for-a-keyword-within-a-github-wiki