GH-300 study notes · 25–30% of the exam
Use GitHub Copilot features
First draft for review. Check details against Microsoft Learn before relying on them.
What this area covers
The heaviest GH-300 area. It covers using Copilot in the IDE, in the CLI and on GitHub.com, and managing it for an organisation.
Key concepts
In the IDE
- Install the extension and sign in. Then use inline suggestions (ghost text, next edit suggestions), Copilot Chat (ask, edit and agent modes), slash commands such as
/explain,/fixand/tests, chat participants and variables such as@workspaceand#file, and agent mode for multistep changes. - Content exclusions stop Copilot using specified files or repositories as context. They're set at repository or organisation level.
Copilot CLI
- A terminal agent that can explain and run commands, edit files and work through tasks interactively. You install it with npm or a package manager and sign in with GitHub.
- It can generate scripts and manage files, asking for approval before it runs tools.
Features on GitHub
- Agent mode, Copilot Edits and MCP (Model Context Protocol) servers extend Copilot with tools and data.
- Copilot code review reviews pull requests and can use custom instructions. Pull request summaries describe changes.
- Copilot Spaces collect context for a team. Spark builds micro apps.
- Coding agent takes an issue and opens a pull request.
- Custom instructions live in
.github/copilot-instructions.mdand prompt files.
Plans and administration
- Plans: Free, Pro, Pro+, Business and Enterprise. They differ in limits, premium requests, models, and features such as knowledge bases and code review.
- Organisation policies enable or disable features, models, the public code filter and MCP for members. Enterprise policies can override them.
- Audit log events record Copilot policy and seat changes. Seats are assigned to users or teams and can be managed through the REST API.
Exam tips
- If a question needs to stop Copilot reading a secrets folder, use content exclusions. A
.gitignoreentry doesn't do this. - If it needs to give all members the same coding conventions, use repository custom instructions.
- If it needs to assign seats automatically for a team, use the REST API or team-based seat assignment.