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
Hinweis
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, in most GitHub Copilot products, 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 or use a product that does not support "Block" mode, 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.
- In the upper-right corner of any page on GitHub, click your profile picture, then click Copilot settings.
- 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 cloud agent in your repositories
Copilot cloud agent allows you to assign Copilot to GitHub issues, or prompt Copilot to undertake a task autonomously, such as deep research of a repository, planning, or code changes, with the option to create a pull request when you're ready.
Hinweis
- Copilot cloud agent is available with the GitHub Copilot Pro, GitHub Copilot Pro+, GitHub Copilot Business and GitHub Copilot Enterprise plans. The agent is available in all repositories stored on GitHub, except repositories owned by managed user accounts and where it has been explicitly disabled.
Copilot cloud agent 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.
- In the upper-right corner of any page on GitHub, click your profile picture, then click Copilot settings.
- In the sidebar, under Copilot, click Cloud agent.
- On the Copilot cloud agent 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 cloud agent.
For GitHub Copilot Business and GitHub Copilot Enterprise subscribers, the ability to use Copilot cloud agent is controlled by policy settings defined at the organization level. See Adding GitHub Copilot cloud agent to your organization.
If the organization is owned by an enterprise, enablement may be controlled at the enterprise level. See Managing GitHub Copilot cloud agent in your enterprise.