Git Basics
Learn how Git repositories, staging, commits, and history work.
0 of 10 lessons0%
Master the fundamentals, then tackle real-world Git workflows.
Learn how Git repositories, staging, commits, and history work.
0 of 10 lessons0%
Work on features in isolation: create branches, move between them with git switch, and understand what HEAD points to.
0 of 6 lessons0%
Bring finished work back together: fast-forward merges, three-way merges and merge commits, and the everyday feature-branch workflow.
0 of 5 lessons0%
Learn why conflicts happen, how to read conflict markers, and how to resolve them by hand, one file or several at a time.
0 of 5 lessons0%
See exactly what changed, undo it at every level, shelve unfinished work, copy commits between branches, find "lost" commits, replay a branch onto a new base and tidy its history with an interactive rebase.
0 of 11 lessons0%
The housekeeping commands you reach for every week: keeping generated files and secrets out of the repository, renaming files, reading what a commit changed, fixing the commit you just made, and tagging releases.
0 of 5 lessons0%
Work with other people: how local branches relate to origin/main, fetching without changing anything, pulling changes in, pushing a branch, and reading a rejected push, then doing it all hands-on against a simulated origin.
0 of 6 lessons0%
Short on time? Try the five-minute demo lesson. Ready for real problems? Take on the challenges, or experiment freely in the playground.