File and Repository Exclusions Quiz
5 questions Pass: 70% +25 pts (50 with Pro)
Quiz covering Use GitHub Copilot in the IDE
What you'll be asked
- Which file should you create in your repository to prevent GitHub Copilot from suggesting code based on specific files or directories?
- If you want to exclude all files within a 'logs' directory from being used by GitHub Copilot, what is the correct syntax to add to your exclusion file?
- How does GitHub Copilot handle files listed in your .github/copilot-exclusions file?
- You have a sensitive API key stored in a file named 'secrets.env'. You want to ensure Copilot never reads this file. Where should you add this file name?
- If you have both a .gitignore file and a .github/copilot-exclusions file, which of the following statements is true regarding Copilot's behavior?
Answers and explanations come after you submit.
Course Content
- Agent Mode and Edit Mode
- Agent Mode and Edit Mode Quiz5q
- MCP Integration
- MCP Integration Quiz5q
- Code Review with Copilot
- Code Review with Copilot Quiz5q
- Spaces and Spark Features
- Spaces and Spark Features Quiz5q
- Pull Request Summaries
- Pull Request Summaries Quiz5q
- Custom Instructions Files
- Custom Instructions Files Quiz5q
Godlike Exams
Spend your points to unlock exam-style practice questions
Spend points to unlock GH-300 exam-style practice questions.
Practice for GH-300