Skip to main content

Harshal V. LADHE

Merging Branches in Git

Fast-forward vs. three-way merges, resolving conflicts, and choosing merge strategies when bringing branches together.

Content tagged merging

  • Snippet:git prune-branches: Delete Merged and Squash-Merged Branches

    Delete merged, squash-merged and rebased local Git branches safely.
    A git prune-branches command that deletes local branches merged into main — including GitHub squash merges git branch --merged misses — with a restore command for each.
    Published at:
    Categories:Git
    Estimated reading time:5 min read
  • Snippet:git sync: Update Your Branch from main in One Command

    Fetch, fast-forward main, and rebase your branch onto it.
    A `git sync` command that fetches, fast-forwards `main` without a checkout, and rebases or merges your branch onto it — with autostash and undo.
    Published at:
    Categories:Git
    Estimated reading time:4 min read
  • Post:Advanced Git: Rebasing, Internals, and Real-World Workflows

    Series:Git: From Basics to Advanced (2/3)
    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
  • Post:Git Basics: A Beginner's Guide to Version Control

    Series:Git: From Basics to Advanced (1/3)
    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