Git Branches

List and visualize Git branch status with remote tracking and synchronization.

1|1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/dtsong/claude-code-windows-setup --skill git-branches
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Git Branches
Source: https://github.com/dtsong/claude-code-windows-setup/tree/main/skills/git-workflows/skills/branches
Command: npx skills add https://github.com/dtsong/claude-code-windows-setup --skill git-branches

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you manage your Git branches by providing clear visibility into their status, tracking information, and synchronization state with remote repositories, simplifying branch cleanup and navigation.

Core Features & Use Cases

  • List Branches: View all local and remote branches with their tracking status.
  • Filter Branches: Show only merged, unmerged, or stale (remote deleted) branches.
  • Visualize Status: Understand ahead/behind counts for local commits and remote sync.
  • Use Case: Before starting new work, you can quickly see which branches are ahead of remote, behind remote, or have been deleted remotely, allowing you to clean up and sync your local repository effectively.

Quick Start

List all local and remote Git branches with their current status.

Frequently Asked Questions about Git Branches

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I list all local and remote Git branches with tracking status?

Git branch management tools help you identify stale remote branches by filtering for branches that have been deleted remotely. This Skill highlights unmerged or stale branches to simplify local repository cleanup and maintain workflow hygiene.

What is the best way to find stale Git branches deleted from the remote repository?

Finding stale Git branches involves filtering for local branches whose remote counterparts have been deleted. This Skill identifies those stale branches to help you clean up and sync your local repository effectively.

Can I filter Git branches to show only merged or unmerged commits?

You can filter Git branches by merged or unmerged status using this Skill. It scopes local branch management to show only branches that meet your merge criteria, streamlining branch navigation and cleanup tasks.

How do I check if my local Git branch is ahead or behind the remote repository?

To check if a local Git branch is ahead or behind remote, this Skill visualizes ahead and behind counts for local commits. It provides clear tracking information to ensure your branches are synchronized with remote repositories.

Do I need any external dependencies to visualize Git branch synchronization state?

You do not need external dependencies to visualize Git branch synchronization state. This Skill operates independently using scripts and references to monitor repository hygiene without requiring additional tools or libraries.