Back to Courses
beginner15 lessons~3.5h3,350 XP

Git Mastery

Every Git command and workflow you need — from your first commit to shipping a tagged release. Based on the Pro Git book and the Conventional Commits spec.

0%

0/15 done

Lesson Path Complete each lesson to unlock the next

Staging & Committing

git add / commit
Locked

Move changes into the staging area and save them permanently with a commit.

Complete Getting Started to unlock

Viewing History

git log / diff / show
Locked

Read the story of your project — every commit, every change, in order.

Complete Staging & Committing to unlock

Branching

git branch / switch
Locked

Work on new features in isolation without touching the stable codebase.

Complete Viewing History to unlock

Merging Branches

git merge
Locked

Bring a finished branch's work back into main — and resolve conflicts when two people touch the same lines.

Complete Branching to unlock

Working with Remotes

git remote / push / pull / fetch
Locked

Sync your local work with GitHub (or any shared server) — push, pull, and fetch.

Complete Merging Branches to unlock

Rewriting History Safely

git commit --amend / rebase / cherry-pick
Locked

Clean up commits before sharing them — amend, rebase, and cherry-pick.

Complete Working with Remotes to unlock

Undoing Mistakes

git restore / reset / revert / stash / reflog
Locked

Every safety net Git gives you — restore, reset, revert, stash, and the reflog escape hatch.

Complete Rewriting History Safely to unlock

Conventional Commits

type(scope): description
Locked

Write commit messages that are both human-readable and machine-parseable.

Complete Undoing Mistakes to unlock

Git Workflows

Gitflow / GitHub Flow / Trunk-Based
Locked

Gitflow, GitHub Flow, and Trunk-Based Development — how real teams structure their branches.

Complete Conventional Commits to unlock

Tags, Versioning & Shipping a Release

git tag + Semantic Versioning
Locked

Tie it all together: from a feature branch to a tagged, versioned production release.

Complete Git Workflows to unlock

Configuration & .gitignore

git config / .gitignore
Locked

Set up your identity once, and tell Git which files to never track in the first place.

Complete Tags, Versioning & Shipping a Release to unlock

Resolving Merge Conflicts

Conflict markers <<<<<<< ======= >>>>>>>
Locked

When Git can't auto-merge two changes to the same lines, here's exactly how to fix it.

Complete Configuration & .gitignore to unlock

Inspecting History: Log Filters & Blame

git log filters / git blame
Locked

Find exactly who changed a line and why, or narrow a huge log down to what actually matters.

Complete Resolving Merge Conflicts to unlock

GitHub CLI & Pull Requests

gh pr create / gh pr merge
Locked

Open, review, and merge pull requests without leaving the terminal.

Complete Inspecting History: Log Filters & Blame to unlock