git-branch

Create, switch, rename, delete, and list Git branches with safety checks.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/theslashdojo/dojo --skill git-branch-theslashdojo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-branch
Source: https://github.com/theslashdojo/dojo/tree/main/nodes/git/branch
Command: npx skills add https://github.com/theslashdojo/dojo --skill git-branch-theslashdojo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Coordinating parallel development by providing reliable, user-friendly branch management (create, switch, rename, delete, list) with safety checks.

Core Features & Use Cases

  • Create and switch to new branches from a base ref (HEAD, origin/main, or a tag) for feature work.
  • List local and remote branches to maintain visibility into repository state.
  • Safe delete and rename operations with guardrails to avoid losing work and breaking builds.
  • Use cases include feature development, bug fixes, hotfixes, and release work across multi-branch workflows.

Quick Start

Create a new feature branch from the main branch using the Branch Manager script.

Frequently Asked Questions about git-branch

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

FAQPage Schema
How do I create a new git branch from a specific tag or origin/main?

You can create a new git branch from a base ref like HEAD, origin/main, or a tag using the branch manager script. This enables safe parallel development workflows for feature work, hotfixes, or release maintenance across local and remote repositories.

What is the safest way to delete local and remote git branches?

The safest way to delete git branches is using a management tool with built-in guardrails. These safety checks prevent losing uncommitted work and breaking builds during local and remote branch deletion operations.

How do I list all local and remote git branches to see repository state?

Listing local and remote git branches provides visibility into your repository state. Use branch management scripts to safely list all branches, ensuring clear tracking of parallel feature development and maintenance workflows across local and remote repositories.

Can I rename a git branch without breaking upstream tracking?

Yes, you can rename a git branch without breaking upstream tracking by using guarded rename operations. This enforces safety checks and clear branching conventions to maintain upstream tracking and ensure safe Git operations across local and remote repositories.

Does branch management work for both feature development and hotfixes?

Yes, git branch management works for both feature development and hotfixes. It coordinates parallel workflows by providing reliable creation, switching, renaming, and deletion of branches with built-in safety checks across local and remote repositories.