About GitHub Copilot settings on GitHub
In addition to the configuration for the GitHub Copilot plugin in your supported IDE, you can configure settings for GitHub Copilot on GitHub. The settings apply wherever you use GitHub Copilot.
Enabling or disabling suggestions matching public code
注意
If you are a member of an organization on GitHub Enterprise Cloud who has been assigned a GitHub Copilot seat through your organization, you will not be able to configure suggestions matching public code in your personal account settings. Your setting for suggestions matching public code will be inherited from your organization or enterprise.
Your personal settings for GitHub Copilot include an option to either allow or block code suggestions that match publicly available code. If you choose to block suggestions matching public code, GitHub Copilot checks code suggestions with their surrounding code of about 150 characters against public code on GitHub. If there is a match, or a near match, the suggestion is not shown to you.
If you choose to allow suggestions matching public code, when Copilot suggests matching code you can display details of the matches and click through to the relevant repositories on GitHub. For more information, see Finding public code that matches GitHub Copilot suggestions.
- 在 GitHub 任意页面的右上角,单击个人资料照片,然后单击“ 您的 Copilot”****。
- To the right of Suggestions matching public code, select the dropdown menu, then click Allow to allow suggestions matching public code, or Block to block suggestions matching public code.
Disabling or enabling Copilot 编码智能体 in your repositories
Copilot 编码智能体 allows you to assign Copilot to GitHub issues, or ask Copilot to raise a pull request from a prompt in Copilot Chat.
注意
- Copilot 编码智能体 可供 GitHub Copilot Pro+ 用户和 GitHub Copilot Enterprise 客户使用。 我们还开始向 GitHub Copilot Business 客户推出,一旦此功能可供你使用,你将收到一封电子邮件。
- Copilot 编码智能体 为 公共预览版,可能会变动。 在预览期间,该功能的使用须遵循“GitHub 预发行许可条款”。
Copilot 编码智能体 is enabled in all repositories by default, but you can block it from being used in repositories owned by your own personal account by changing your account settings.
- 在 GitHub 任意页面的右上角,单击个人资料照片,然后单击“ 您的 Copilot”****。
- In the sidebar, under Copilot, click Coding agent.
- On the Copilot 编码智能体 page, under "Policies," click the dropdown button for "Repository access," then choose either No repositories, All repositories, or Only selected repositories.
- If you choose Only selected repositories, click Select repositories and choose the repositories where you want to enable Copilot 编码智能体.
对于 GitHub Copilot Enterprise 订阅者,使用 Copilot 编码智能体 的权限由组织层级定义的策略设置控制。 请参阅“Adding Copilot 编码智能体 to your organization”。
如果该组织归企业所有,则可以在企业级别控制启用情况。 请参阅“Managing Copilot 编码智能体 in your enterprise”。