Skip to main content

Harshal V. LADHE

Git: From Basics to Advanced

Everyday Git commands, advanced workflows, and searching history.
Published at:
Last updated:
Parts:3 parts
Cover image for the “Git: From Basics to Advanced” series, featuring a glowing Git branch graph with main, feature, and release branches, plus two sections covering Git basics, advanced workflows, internals, rebasing, recovery, and real-world Git usage.(opens full-size image in a new tab)
Two parts taking Git from first commits to rebasing, internals and workflows.

🌱 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, and log, 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 .git directory layout, submodules, worktrees, hooks, disaster recovery with reflog, and the branching workflows real teams use.
  • Part 3: Searching Git History: git log -S, -L, git grep and git blame — Finding when code was added or changed with the -S and -G pickaxe, following a single function through history with git log -L, tracking down deleted and renamed files with --diff-filter and --follow, searching any commit with git grep, and getting honest answers from git blame after 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.
    Published at:
    Categories:Git
    Estimated reading time:14 min read
  • 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.
    Published at:
    Categories:Git
    Estimated reading time:22 min read
  • Searching Git History: git log -S, -L, git grep and git blame

    Find 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.
    Published at:
    Categories:Git
    Estimated reading time:21 min read

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

Share this series