Beginner90 min
Estimated — self-paced course, go at your own speed.
Dev Containers and pre-commit: the fundamentals
This track takes you from zero exposure to Dev Containers and pre-commit to a practical understanding of both tools: you'll open a real Dev Container, learn to read its configuration file, then install pre-commit to see, with your own eyes, a commit blocked before it can break anything.
Modules
- 1Technical prerequisitesThe checklist to clear before you start — without it, the modules ahead won't work.
- 2Why these two toolsTwo different problems, two different tools — and how to tell them apart on a concrete case.
- 3Opening an existing devcontainerCreate a minimal Dev Container and open it in VS Code — with concrete proof that you're actually inside it.
- 4Reading a devcontainer.jsonAnnotate the file opened in the previous module field by field, then test yourself on a second example.
- 5Installing pre-commit and triggering a blockInstall pre-commit, configure a simple hook, and deliberately trigger a rejected commit.
- 6Native hooks vs pre-commit-managed hooksOpen the script generated by pre-commit install and understand what sets it apart from a hand-written git hook.