Bitzu

GH-900 ยท Automation and AI-assisted development

GitHub Codespaces

Cloud-hosted development environments created from a repository, how to open and stop them, and what they are good for.

Key points

  • A codespace is a cloud-hosted development environment: a Docker container on a Linux virtual machine hosted by GitHub.
  • You can create one from a repository branch or commit (or a template) and connect through the browser, Visual Studio Code or the GitHub CLI.
  • It is good for quick onboarding and consistent setups on any local OS, especially when a dev container configuration is committed to the repo.

Source: https://docs.github.com/en/codespaces/about-codespaces/what-are-codespaces

Practice questions

Single choice

What is a GitHub codespace?

  1. A cloud-hosted development environment created from a repository
  2. A private branch protected by a ruleset
  3. A plan that unlocks Copilot Chat
  4. A server that runs Actions jobs
Show answer

Answer: A. A cloud-hosted development environment created from a repository

A codespace is a cloud-hosted dev environment you create from a repository. It is not a billing plan, a runner for workflows or an AI feature.

Select all that apply

Which are ways to work in a codespace?

  1. In the browser
  2. From Visual Studio Code
  3. With the GitHub CLI
  4. Through an email client
  5. Via a plain FTP client
Show answer

Answer: A. In the browser, B. From Visual Studio Code, C. With the GitHub CLI

You can connect through a browser, Visual Studio Code or the GitHub CLI. Email and FTP are not supported ways to open a codespace.

True or false

True or false: if you work on a Mac, your codespace runs macOS.

Show answer

Answer: False

False. Codespaces run on Linux; your local OS only affects the client you connect from.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More GH-900 topics in this module