Understand Git: working files, staging, and commits
See how working files, the staging area, and committed history differ in a small Git repository.
Six lessons · your first Git workflow
Start with the snapshot model, then practice commits, review, branches, and sharing. Each lesson creates its own sandbox, so you can restart or jump ahead without losing earlier work.
See how working files, the staging area, and committed history differ in a small Git repository.
Initialize a local repository, configure its author identity, and record a first commit without a hosting account.
Identify staged, unstaged, and untracked changes and inspect the exact snapshot that a commit records.
Practice a local feature branch and a deliberate merge, then understand the resulting commit graph.
Practice sharing commits with a local bare remote and two clones, without credentials or a hosting account.
Practice a repeatable Git workflow that separates reviewing changes, checking behavior, and publishing commits.