Skip to main content

Harshal V. LADHE

Git Branching Strategies and Commands

Everything about Git branches — creating, switching, renaming, tracking, and choosing a branching strategy for your team.

Content tagged branching

  • 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
  • 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