Skip to main content

About content exclusions for GitHub Copilot

Learn how content exclusions for GitHub Copilot work.

누가 이 기능을 사용할 수 있는 있나요?

Repository administrators and organization owners can manage content exclusion settings.

People with the "Maintain" role for a repository can view, but not edit, content exclusion settings for that repository.

GitHub Copilot Business 또는 GitHub Copilot Enterprise 구독을 보유한 조직입니다.

Note

GitHub Copilot은(는) 현재 퍼블릭 베타 버전이며 변경될 수 있습니다.

You can configure GitHub Copilot to ignore certain files by excluding specific paths to content in the settings for your repository or organization.

When you specify content exclusions, there are up to three effects depending on the level of support for your IDE:

  • Code completion will not be available in the affected files.
  • The content in affected files will not inform code completion suggestions in other files.
  • The content in affected files will not inform GitHub Copilot Chat's responses.

콘텐츠 제외를 추가하거나 변경한 후 설정이 이미 로드된 IDE에서 적용되려면 최대 30분이 걸릴 수 있습니다. 사용자 고유의 IDE에 변경 내용을 적용하여 콘텐츠 제외 설정을 다시 로드할 수 있습니다. See "Testing changes to content exclusions in your IDE."

Availability of content exclusions

ToolCode completion supportCopilot Chat support
Visual Studio
Visual Studio Code
JetBrains IDEs
Vim/NeovimNot applicable
Azure Data StudioNot applicable
GitHub.comNot applicable

Limitations of content exclusions

  • Visual Studio Code을(를) 제외한 콘텐츠 제외는 현재 GitHub Copilot Chat에 대해 지원되지 않습니다.
  • 질문에 @github Copilot 채팅 참가자를 사용하면 Visual Studio Code의 GitHub Copilot Chat 및 Visual Studio의 Copilot Chat에서 콘텐츠 제외가 적용되지 않습니다.
  • 제외되지 않은 파일에서 IDE가 정보를 제공하는 경우 에서 제외된 파일의 의미론적 정보를 사용할 수 있습니다. 이러한 콘텐츠의 예로는 코드에 사용되는 기호에 대한 형식 정보와 커서 올리기 정의가 포함됩니다.

What can you exclude?

When you specify content exclusion in the settings for a repository, you can only exclude files in that repository.

When you specify content exclusion in the settings for an organization, you can exclude files in any Git-based repository hosted on GitHub.com, or anywhere that can be accessed using any of the following syntaxes:

http[s]://host.xz[:port]/path/to/repo.git/

git://host.xz[:port]/path/to/repo.git/

[user@]host.xz:path/to/repo.git/

ssh://[user@]host.xz[:port]/path/to/repo.git/

Who is affected by a content exclusion setting?

GitHub Copilot 콘텐츠 제외 설정은 Copilot을(를) 사용하는 모든 사용자에게 적용되지 않습니다.

콘텐츠 제외 설정은 GitHub Copilot Business 또는 GitHub Copilot Enterprise 구독의 일부로 시트를 부여 받고 콘텐츠 제외가 구성된 동일한 엔터프라이즈의 구성원인 사용자에게만 적용됩니다. 지정된 파일에 액세스할 수 있는 다른 사용자는 콘텐츠 제외의 영향을 받지 않으며 코드 완성 제안도 계속 표시됩니다.

You can't specify content exclusions in the settings for an enterprise. However, all content exclusions defined in organization or repository settings apply to all members of the enterprise who have been granted a Copilot seat as part of a Copilot Business or Copilot Enterprise subscription.

This means, for example, that if you are an admin of an organization that belongs to Enterprise X, you can set up an exclusion for files in any Git-based repositories, hosted on GitHub or elsewhere, and the exclusion will apply to anyone who gets their Copilot Business or Copilot Enterprise license from any organization in Enterprise X.

Tip

To more easily track content exclusions, create exclusions in the settings of the repository containing the affected files, or in the settings of the organization that owns the repository.

Data sent to GitHub

After you configure content exclusion, the client (for example, the Copilot extension for VS Code) sends the current repository URL to the GitHub server so that the server can return the correct policy to the client. These URLs are not logged anywhere.

Next steps

To set up content exclusions in your repository or organization, see "Configuring content exclusions for GitHub Copilot."