此版本的 GitHub Enterprise 将停止服务 2022-02-16. 即使针对重大安全问题,也不会发布补丁。 要获得更好的性能、改进的安全性和新功能,请升级到 GitHub Enterprise 的最新版本。 如需升级方面的帮助,请联系 GitHub Enterprise 支持

Enabling unified search between your enterprise account and GitHub.com

After enabling GitHub Connect, you can allow search of GitHub.com for members of your enterprise on GitHub Enterprise Server.

Enterprise owners who are also owners of the connected GitHub Enterprise Cloud organization or enterprise account can enable unified search between GitHub Enterprise Server and GitHub.com.

When you enable unified search, users can view search results from public and private content on GitHub.com when searching from your GitHub Enterprise Server instance.

After you enable unified search for your GitHub Enterprise Server instance, individual users must also connect their user accounts on GitHub Enterprise Server with their user accounts on GitHub.com in order to see search results from GitHub.com on your GitHub Enterprise Server instance. For more information, see "Enabling GitHub.com repository search in your private enterprise account."

Users will not be able to search your GitHub Enterprise Server instance from GitHub.com, even if they have access to both environments. Users can only search private repositories you've enabled 统一搜索 for and that they have access to in the connected GitHub Enterprise Cloud organizations. For more information, see "About searching on GitHub."

Searching via the REST and GraphQL APIs does not include GitHub.com search results. Advanced search and searching for wikis in GitHub.com are not supported.

  1. Sign in to GitHub Enterprise Server and GitHub.com.
  2. 从 GitHub Enterprise Server 上的管理帐户,点击任何页面右上角的 用于访问站点管理员设置的火箭图标
  3. 在左侧边栏中,单击 Enterprise(企业) 概述站点管理设置中的 Enterprise(企业)概述选项卡
  4. 在企业帐户侧边栏中,单击 Settings(设置)企业帐户侧边栏中的“设置”选项卡
  5. 在左侧边栏中,单击 GitHub ConnectGitHub Connect tab in the business account settings sidebar
  6. Under "Users can search GitHub.com", use the drop-down menu and click Enabled. Enable search option in the search GitHub.com drop-down menu
  7. Optionally, under "Users can search private repositories on GitHub.com", use the drop-down menu and click Enabled. Enable private repositories search option in the search GitHub.com drop-down menu

Further reading

此文档对您有帮助吗?

隐私政策

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或者, 了解如何参与。