GH-900 study notes · 10–15% of the exam

Work with GitHub repositories

First draft for review. Check details against Microsoft Learn before relying on them.

What this area covers

Repository structure, files, templates, insights and maintenance.

Key files

  • README: what the project is and how to start.
  • LICENSE: how others may use the code. With no licence, nobody else has the right to reuse it.
  • CONTRIBUTING: how to contribute.
  • CODEOWNERS: who is automatically asked to review each path.
  • SECURITY: how to report vulnerabilities.

Managing repositories

  • Template repositories create new repositories with the same files but no history. Forks copy a repository and keep a link to the original.
  • Adding files: through the web UI, Git push, GitHub Desktop or Codespaces.
  • Insights: contributors, traffic, commits, the dependency graph and Dependabot alerts. Stars bookmark a repository and show interest.
  • Good practice: keep docs current, protect main, require reviews, label issues, and never commit secrets.