GH-300 · Question #12
What content can be configured to be excluded with content exclusions? (Each correct answer presents part of the solution. Choose three.)
The correct answer is B. Files C. Folders D. Repositories. GitHub Copilot content exclusions operate at three granularity levels: repositories (exclude an entire repo from being used as context), folders (exclude a specific directory and its contents), and files (exclude specific files by path or pattern). Individual lines within a…
Question
What content can be configured to be excluded with content exclusions? (Each correct answer presents part of the solution. Choose three.)
Options
- ALines in files
- BFiles
- CFolders
- DRepositories
- EGists
How the community answered
(55 responses)- A4% (2)
- B93% (51)
- E4% (2)
Explanation
GitHub Copilot content exclusions operate at three granularity levels: repositories (exclude an entire repo from being used as context), folders (exclude a specific directory and its contents), and files (exclude specific files by path or pattern). Individual lines within a file (A) cannot be targeted - the smallest unit is a file. Gists (E) are not supported by content exclusions because they are not part of a repository structure. Content exclusions use path-based rules in a configuration file, so they require a file system hierarchy (repo → folder → file) to function.
Topics
Community Discussion
No community discussion yet for this question.