Complete guide · checked November 2026
Git & GitHub Complete Guide
Git and GitHub from zero to confident: the mental model, setup with SSH and the GitHub CLI, the daily loop, branches and conflicts, pull requests and reviews, undoing mistakes, Actions, Pages and releases, and working with AI coding agents. Every terminal block is real output from Git 2.43, captured when this guide was built.
Lessons
Lesson 1 · about 18 minHow Git works: snapshots, commits, branches and the three areasThe mental model that makes every Git command make sense: snapshots instead of differences, the working…Lesson 2 · about 20 minSet up Git and GitHub: install, identity, SSH keys, GitHub CLI and your first repositoryInstall Git on Windows, macOS or Linux, set your name and email, create a GitHub account with two-factor…Lesson 3 · about 20 minThe daily Git loop: status, diff, add, commit, log, .gitignore and restoreThe commands you will type every day, with real output: check what changed, stage, commit with a good…Lesson 4 · about 25 minBranches, merging, conflicts, rebase and stashWork on features without breaking main: create and switch branches, fast-forward and three-way merges, read…Lesson 5 · about 25 minGitHub collaboration: remotes, push and pull, forks, pull requests, reviews and issuesConnect a local repository to GitHub, push, fetch and pull with real output, contribute through forks and…Lesson 6 · about 20 minUndo anything safely: amend, reset, revert, reflog and leaked secretsFix the last commit message, take back a commit you have not shared, undo a commit that is already on GitHub,…Lesson 7 · about 22 minGitHub Actions, Pages, releases and security featuresAutomate tests with a GitHub Actions workflow, publish a free website with GitHub Pages, tag versions and…Lesson 8 · about 20 minGitHub with AI: Copilot, the coding agent, Claude Code and CodexUse GitHub Copilot in your editor and on github.com, assign issues to the Copilot coding agent, ask @copilot…