在 GitHub Enterprise Server 与 GitHub.com 之间启用统一搜索
启用 GitHub Connect 后,您可以允许从 您的 GitHub Enterprise Server 实例 搜索 GitHub.com。
When you enable unified search, users can view search results from public and private content on GitHub.com when searching from 您的 GitHub Enterprise Server 实例.
Users will not be able to search 您的 GitHub Enterprise Server 实例 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. 更多信息请参阅“关于在 GitHub 上搜索”和“在 GitHub Enterprise Server 帐户中启用私有 GitHub.com 仓库搜索”。
通过 REST 和 GraphQL API 进行搜索不包含 GitHub.com 搜索结果。 不支持在 GitHub.com 中进行高级搜索和搜索 Wiki。
-
登录到 您的 GitHub Enterprise Server 实例 和 GitHub.com。
-
In the upper-right corner of any page, click .
-
In the left sidebar, click Business.
-
Under your business account's name, click Settings.
-
In the left sidebar, click GitHub Connect.
-
在“Users can search GitHub.com”下,使用下拉菜单,然后单击 Enabled。
-
Optionally, under "Users can search private repositories on GitHub.com", use the drop-down menu and click Enabled.