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
What is a GitHub codespace?
- A cloud-hosted development environment created from a repository
- A private branch protected by a ruleset
- A plan that unlocks Copilot Chat
- 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.
Which are ways to work in a codespace?
- In the browser
- From Visual Studio Code
- With the GitHub CLI
- Through an email client
- 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: 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.
