Skip to main content

此版本的 GitHub Enterprise Server 已于以下日期停止服务 2024-09-25. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

启用跨环境存储库搜索

通过在 GitHub.com 上连接帐户,统一 GitHub Enterprise Server 中的搜索结果。

You can search for designated private repositories on GitHub Enterprise Cloud from your GitHub Enterprise Server instance. For more information about searching across environments, see "About searching on GitHub."

Prerequisites

An enterprise owner for GitHub Enterprise Server must enable GitHub Connect and unified search for private repositories. For more information, see "Enabling unified search for your enterprise."

Enabling unified repository search from GitHub Enterprise Server

  1. Sign in to both your user account on GitHub Enterprise Server and your user account on GitHub Enterprise Cloud (GitHub.com).
  2. On GitHub Enterprise Server, in the upper-right corner of any page, click your profile photo, then click Settings.

Screenshot of a user's account menu on GitHub. The menu item "Settings" is outlined in dark orange.

  1. In the left sidebar, click GitHub Connect.
  2. Click Connect to GitHub.com.