【问题标题】:GitHub repository not listing in Google search - no way to submit urlGitHub 存储库未在 Google 搜索中列出 - 无法提交 url
【发布时间】:2019-04-24 09:59:03
【问题描述】:

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

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

【问题讨论】:

  • How can I make my repository visible to others? 您可以在问题中粘贴真实的 url 而不是假的,这可能是加速引用过程的一种方法。您所遵循的链接都与您自己的网站相关,而不是用于引用您不拥有的网站上的内容。你只需要等待搜索引擎爬虫再次爬取github。在你的 repo 上进行一些活动(提交、发布、PR、wiki 编辑......)可能会有所帮助
  • 谢谢。我已经按照你的建议做了。也许,这会有所帮助。不过,该页面已经被爬取过,也许现在这个改变没有意义。

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


【解决方案1】:

按照https://github.community/t5/How-to-use-Git-and-GitHub/My-GitHub-repositories-are-not-known-by-Google/td-p/12993 的建议,我为我的用户帐户和项目(我想要索引的存储库)创建了 GitHub 页面。

因此生成的链接看起来像 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 建立索引。这使得这两个页面出现在谷歌搜索的结果中。但是我的 GitHub 存储库仍然没有出现在 Google 搜索的结果中,即使指向它的链接出现在两个索引的 GitHub 页面上。

但第二天我发现我的 GitHub 存储库意外出现在 Google 搜索结果中。所以看起来创建 GitHub Pages 的整个想法对我来说是可行的。


不过,我还在 GitHub 存储库的标题处添加了主题(即标签)、描述和网站。也许,这就是诀窍:

【讨论】:

  • 不,最后一部分并不能单独解决问题。
猜你喜欢
  • 1970-01-01
  • 2022-10-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-06-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多