Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub repository not listing in Google search - no way to submit url

I have made my Github repo public a week ago but it is still not visible in google search even if I search it like site:https://github.com/user/reponame. Answers for similar questions on Stackoverflow suggest to feed the url of the repo to Google Search by the link https://www.google.com/webmasters/tools/submit-url but it does not work anymore (I have found the article https://www.searchenginejournal.com/google-removes-public-url-submission-tool on that).

How can I make my repository (https://github.com/ZhenyaKh/replace-switches) visible to others?

like image 815
JenyaKh Avatar asked Apr 24 '19 09:04

JenyaKh


People also ask

Why is my Git repository not found?

Error: Repository not found. If you see this error when cloning a repository, it means that the repository does not exist or you do not have permission to access it.

How do I show my Git repository in my browser?

Step 1: Open the GitHub repo in any browser. Step 2: In the address bar, just add “1s” (without quotes) next to the word github.

How can you get the URL of a GitHub repository?

On the GitHub website, click on you repository of interest. Locate the green button named Code and click on it. The GitHub URL will appear. Copy the GitHub URL.

Why can't I find my GitHub on Google?

If you find that you are experiencing problems with your GitHub account not appearing in a Google search we would recommend reaching out to Google and submitting your Google profile page to be crawled. This can be done here. But google search console need to verify ownership.


1 Answers

I created GitHub Pages for both my user account and my project (the repo I wanted to be indexed), as proposed here https://github.community/t5/How-to-use-Git-and-GitHub/My-GitHub-repositories-are-not-known-by-Google/td-p/12993.

So the resulting links look like https://username.github.io and https://username.github.io/reponame. As I am the "owner" of https://username.github.io, I added the site as a "property" and verified my ownership over the "property" using Google Search Console. Then, also in Google Search Console, I manually requested indexing for both https://username.github.io and https://username.github.io/reponame. This made the two pages appear in results of Google search. But my GitHub repository still did not appear in results of Goolgle Search, even though the link to it was present on both the indexed GitHub Pages.

But on the next day I discovered that my GitHub repo unexpectedly appeared in Google search results. So it looks like the whole idea with creating GitHub Pages worked out for me.


Though, I also added topics (i.e. tags), description and website at the header of the GitHub repository. Maybe, this was which did the trick:

enter image description here

like image 105
JenyaKh Avatar answered Sep 24 '22 16:09

JenyaKh