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

  1. Which file should you create in your repository to prevent GitHub Copilot from suggesting code based on specific files or directories?
  2. 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?
  3. How does GitHub Copilot handle files listed in your .github/copilot-exclusions file?
  4. 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?
  5. 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.