Git: From Basics to Advanced
(opens full-size image in a new tab)🌱 Git: From Basics to Advanced is your complete, hands-on path to actually understanding Git — not just memorizing commands, but knowing why they work the way they do.
Whether you're just getting comfortable with git commit or you already use Git daily but want to understand what's really happening underneath it, this 3-part series takes you from the everyday loop to the internals and workflows that make Git feel less like a black box, and then to the commands that answer any question about your project's history.
Here's what you'll explore:
- Part 1: Git Basics: A Beginner's Guide to Version Control — The core mental model (working directory, staging area, repository), everyday commands like
add,commit,diff, andlog, keeping untracked junk out with.gitignore, branching and merging, undoing mistakes safely, stashing, and working with remotes. - Part 2: Advanced Git: Rebasing, Internals, and Real-World Workflows — Interactive rebasing, cherry-picking,
bisect, Git's actual object model and.gitdirectory layout, submodules, worktrees, hooks, disaster recovery withreflog, and the branching workflows real teams use. - Part 3: Searching Git History:
git log -S,-L,git grepandgit blame— Finding when code was added or changed with the-Sand-Gpickaxe, following a single function through history withgit log -L, tracking down deleted and renamed files with--diff-filterand--follow, searching any commit withgit grep, and getting honest answers fromgit blameafter moves and reformats.
By the end of the series, you'll be able to set up a repository, work through a full feature branch lifecycle, clean up messy history before sharing it, recover confidently when something goes wrong, and trace any line of code back to the commit that wrote it — because you'll understand what Git is actually doing, not just which command to type.
Posts
Git Basics: A Beginner's Guide to Version Control
Master Git's core workflow, from commit to merge.A beginner-friendly guide to Git covering setup, the staging area, everyday commands like add/commit/diff/log, .gitignore, branching, merging, undoing mistakes, stashing, remotes, and tags.Advanced Git: Rebasing, Internals, and Real-World Workflows
Rebase confidently, understand internals, and recover from anywhere.An advanced Git guide covering interactive rebasing, cherry-picking, bisect, Git internals (objects, refs, the .git directory), submodules, worktrees, hooks, reflog-based recovery, and real branching workflows.Searching Git History:
git log -S,-L,git grepandgit blameFind when, why and by whom code changed.Find when code changed with git log -S and -G, trace a function with git log -L, search any commit with git grep, and blame past moves and reformats.
From your first commit to rebasing with confidence and answering any question about your history — that's the whole arc this series was built to cover. Thanks for sticking with it through all three parts. Go put it to use. 🌱
Changelog
- — Added Part 3: 'Searching Git History: `git log -S`, `-L`, `git grep` and `git blame`'
- — Initial publication