Skip to main content

启用跨环境存储库搜索

通过在 GitHub.com 或 GHE.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 or GHE.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.