You have to create a Google Search Console account and add your page, then typically you just drop a "marker" file in the root (Search Console generates this) so that Google can confirm you really own the page.
Google Search Console
Instructions
(Since the instructions are long and have many links to sub-steps, I'm only providing the link.)
Also, if you're going to use a registered domain name, set that up before you register the site for search.
(Edit: Technically you don't have to do this, sooner or later Google will find you... but this will give your content a much higher-quality score.)
Answer from McGuireV10 on Stack OverflowYou have to create a Google Search Console account and add your page, then typically you just drop a "marker" file in the root (Search Console generates this) so that Google can confirm you really own the page.
Google Search Console
Instructions
(Since the instructions are long and have many links to sub-steps, I'm only providing the link.)
Also, if you're going to use a registered domain name, set that up before you register the site for search.
(Edit: Technically you don't have to do this, sooner or later Google will find you... but this will give your content a much higher-quality score.)
Answer from McGuireV10 on Stack OverflowYou have to create a Google Search Console account and add your page, then typically you just drop a "marker" file in the root (Search Console generates this) so that Google can confirm you really own the page.
Google Search Console
Instructions
(Since the instructions are long and have many links to sub-steps, I'm only providing the link.)
Also, if you're going to use a registered domain name, set that up before you register the site for search.
(Edit: Technically you don't have to do this, sooner or later Google will find you... but this will give your content a much higher-quality score.)
Generally, google finds all website and index them. Sometimes, it's takes time to crawl the new website.
But, you can do this thing manually by following these steps:
- Go to Google Search Console
- Add the website as your property
- Then, verify your property that you're the owner of this.
How to add a search in Github-Pages in Jekyll site?
Enabling search on github pages
GitHub page not appearing in search engines
Can't get my github page to show in google search results - Google Search Central Community
Videos
I am using Jekyll to build my site. I want to add a search box on my site with lunr.js. But I don't know how to use lunr.js with Jekyll. Can anyone help to install lunr.js in Jekyll site?
Hi everyone,
I created a very simple Github pages site using the instructions in the documentation. The repository for the site is very simple -- it basically just consists of an index.html file. However, the website is not appearing in any search engines even though it was published more than three months ago.
Any ideas why the website is not being indexed by Google?
Apologies if this is an entirely trivial question - I really appreciate any help!
There is a built-in search feature, since Aug 8, 2016. It is in the same search bar at the top of any of your project's github pages.

As far as I know there isn't any way to use GitHub's built in search feature for Wiki pages. I guess it may be something they add in the future.
You can use the GitHub Wiki Search Chrome plugin to achieve the same thing.
If you happened to have set the "website" setting in the "About" section of the repo, you could figure it out like this, using the GitHub CLI:
gh repo list \
--limit 500 --json name,homepageUrl --jq 'map(select(.homepageUrl != ""))'
This shows you a list of all repos that have a homepage set.
However, that's a setting enabled manually, and you can put any URL in there, so it might not return useful results.
In that case, you could iterate over every repository, and try to request the Pages site via REST API. If that succeeds, there is a page associated with the repo.
This snippet does that, suppressing errors from the call to the /pages endpoint; remove 2> /dev/null to see all the output.
while IFS= read -r repo; do
if url=$(gh api "repos/$repo/pages" --jq '.html_url' 2> /dev/null); then
printf '%s uses %s\n' "$repo" "$url"
fi
done < <(gh repo list --limit 500 | awk '{print $1}')
Found the answer:
curl "https://api.github.com/users/<username>/repos?per_page=100" | jq '.[] | select(.has_pages==true) | .name'
