A team is using GitHub Copilot Individual in their daily development activities. They need to exclude specific files from being used to inform code completion suggestions. How can they achieve this?
Suggested Answer: E
Get Premium GH-300 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
''Content exclusions are available only with GitHub Copilot Business and Enterprise. Copilot Individual users cannot configure exclusions.''
This confirms that the only way for the team to achieve exclusions is by upgrading to Copilot Business.
===========
12 comments · newest first
PA
Paulina
5 days ago
Wait, can you really exclude files with a .gitignore?
CA
Candida
10 days ago
I think C) makes more sense, though.
KR
Kristine
15 days ago
A) is the right choice for content exclusions.
AN
Anabel
20 days ago
I agree, .gitignore is the way to go!
MA
Mayra
26 days ago
Definitely not A or E, those don’t apply here.
MI
Micah
1 month ago
Wait, can you really exclude files with the #file Chat variable?
RO
Ronna
1 month ago
I think it's actually the repo admin who needs to set it up.
AR
Arthur
1 month ago
You can use a .gitignore file for that!
RO
Rosamond
2 months ago
I vaguely remember a question about using variables to exclude files, but I don't think the #file Chat variable is the right answer here.
LI
Linwood
2 months ago
I feel like content exclusions are a feature, but I can't recall if they need to be set by an organization owner or if repo admins can do it too.
SA
Salena
2 months ago
I remember something about .gitignore files, but I thought that was more for ignoring files in version control rather than affecting Copilot suggestions.
BE
Bea
2 months ago
I think it might be option C, but I'm not entirely sure if repo admins have that capability.