Google cannot locate my GitHub repositories - Google Site Verification fails
Solution 1:
I have made partial progress. Google
has verified my GitHub Page
and is in the process of indexing that page. I have not been able to verify my GitHub
repository. However, my GitHub Page
links to my GitHub
repository. So, after Google
finishes indexing my GitHub Page
maybe Google
will be able to list both the page and the repository in search results. I will not know for maybe another week.
Below are the steps I used to verify my GitHub Page
based on this post by klues
:
https://stackoverflow.com/questions/26199705/github-repository-not-listing-in-google-search
- Go to
Google Search Console
https://search.google.com/search-console/welcome
I made sure I was using the same Gmail
account to log into both GitHub
and Google Search Console
.
- Paste the
URL
of yourGitHub Page
into theURL Prefix
box. For example, I used:
https://icterusgalbula.github.io/RAWStutorial/
This GitHub Page
is referred to as a property
.
-
Click
Continue
-
Scroll down to the
HTML tag
verification method section and copy the meta tag displayed by clicking the wordCOPY
-
Paste that text into your
index.html
file in yourGitHub
repository. Bracket that text between<head>
and</head>
. The actualhtml
code was not displayed here when I tried. Myindex.html
file is in thegh-pages
branch of myGitHub
repository. -
Commit the changes made in your
index.html
file (i.e., update your repository). -
Click the word
VERIFY
on theGoogle Search Console
screen -
Hopefully
Google Search Console
will verify yourGitHub Page
site. My site was verified. -
Click
GO TO PROPERTY
-
You must wait approximately 48 hours after which a different
Google Search Console
screen will appear with a search bar at the top. -
Paste the
URL
of theGitHub Page
into that search bar at the top of the newGoogle Search Console
screen. However, this time use a slightly different version of theURL
than was used in Step 2. This time addindex.html
to the end of theURL
:
https://icterusgalbula.github.io/RAWStutorial/index.html
-
Click
Enter
-
Request Indexing
-
Wait for Google to index the
GitHub Page
. I do not know how long this will take but I guess it could take anywhere from a couple of days to a couple of weeks. Here is a screenshot of the current state of myGoogle Search Console
display while I wait forGoogle
to index myGitHub Page
. Note the checkmark next toIndexing requested
:
I will update this post after the indexing of the GitHub Page
is completed (or fails).
EDIT: August 19, 2021
Google
still is not able to locate my GitHub
page. The following screenshot shows that Google Search Console
Coverage
is still processing data
~ one month after creating this post.