GitHub存储库未在Google搜索中列出-无法提交网址

时间:2019-04-24 09:59:04

标签: github web-crawler google-search google-crawlers google-index

我已经在一周前公开了我的Github存储库,但是即使我像site:https://github.com/user/reponame一样搜索它,它仍然在Google搜索中不可见。有关Stackoverflow的类似问题的答案建议通过链接https://www.google.com/webmasters/tools/submit-url将回购的网址提供给Google搜索,但是它不再起作用了(我已经在上面找到了文章https://www.searchenginejournal.com/google-removes-public-url-submission-tool)。

如何使其他人可以看到我的存储库(https://github.com/ZhenyaKh/replace-switches)?

1 个答案:

答案 0 :(得分:1)

我为用户帐户和项目(我希望建立索引的存储库)创建了GitHub Pages,如此处https://github.community/t5/How-to-use-Git-and-GitHub/My-GitHub-repositories-are-not-known-by-Google/td-p/12993所述。

因此,生成的链接看起来像https://username.github.iohttps://username.github.io/reponame。由于我是https://username.github.io的“所有者”,因此我将该网站添加为“财产”,并使用Google Search Console验证了对“财产”的所有权。然后,同样在Google Search Console中,我手动请求为https://username.github.iohttps://username.github.io/reponame编制索引。这使两个页面出现在Google搜索结果中。但是我的GitHub存储库仍然没有出现在Goolgle Search的搜索结果中,即使它的链接同时存在于已索引的GitHub Pages上。

但是第二天,我发现我的GitHub存储库意外出现在Google搜索结果中。因此,创建GitHub Pages的整个想法对我来说似乎很可行。


尽管如此,我还在GitHub存储库的标题中添加了主题(即标签),描述和网站。也许,这就是窍门:

enter image description here