Skip to main content
我们经常发布文档更新,此页面的翻译可能仍在进行中。 有关最新信息,请访问英语文档
GitHub AE 目前处于受限版。

为企业启用统一搜索

从 你的企业 搜索时,你可以允许用户在搜索结果中包含 GitHub.com 上的存储库。

谁可以使用此功能

Enterprise owners can enable unified search between GitHub AE and GitHub.com.

Note: GitHub Connect for GitHub AE is currently in beta and subject to change.

When you enable unified search, users can view search results from content on GitHub.com when searching from your enterprise on GitHub AE.

You can choose to allow search results for public repositories on GitHub.com, and you can separately choose to allow search results for private repositories on GitHub Enterprise Cloud. If you enable unified search for private repositories, users can only search private repositories that they have access to and that are owned by the connected organization or enterprise account. For more information, see "About searching on GitHub."

Users will never be able to search your enterprise from GitHub.com, even if they have access to both environments.

After you enable unified search for your enterprise, before individual users can see search results from private repositories on GitHub.com in your enterprise, each user must also connect their user account on GitHub AE with a user account on GitHub.com. For more information, see "Enabling GitHub.com repository search from your private enterprise environment."

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.

Before you can enable unified search, you must enable GitHub Connect. For more information, see "Managing GitHub Connect."

  1. Sign into your enterprise and GitHub.com.

  2. In the top-right corner of GitHub AE, click your profile photo, then click Enterprise settings. "Enterprise settings" in drop-down menu for profile photo on GitHub AE

  3. In the enterprise account sidebar, click GitHub Connect.

  4. To the right of "Unified search", click Enable.

    Screenshot of the "Unified search" option on the GitHub Connect page. The "Enable" button is highlighted with an orange outline.

  5. Optionally, to the right of "Users can search private repositories on ENTERPRISE ACCOUNT/ORGANIZATION when searching from Enterprise Server", click Enable.

    Screenshot of the "Unified search" option on the GitHub Connect page. To the right of the setting to allow search of private repositories, the "Enable" button is highlighted with an orange outline.