Understand Git: working files, staging, and commits
See how working files, the staging area, and committed history differ in a small Git repository.
Learn Git by doing
Understand what Git records, practice the everyday workflow, and solve the problems that interrupt real projects. Every lesson works with ordinary Git commands in a fresh local folder.
Start the beginner pathSee 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.
Use git add --patch to stage one change while leaving another edit in the same file out of your commit.
Use a soft reset to revise an unpublished last commit without losing its files or staged changes.
Reverse a shared change with git revert while preserving the original commit and remote history.
Reproduce a text merge conflict, inspect both versions, write the intended result, and finish the merge.
Find a recently displaced local commit in reflog and preserve it on a new recovery branch.
Create a second checkout with git worktree, keep pending edits separate, and inspect both branches safely.
Already reviewing agent changes? Read the workflow guides. For GitGlow controls and edition requirements, use the product documentation.