vc:merge-worktree

Community

Safely merge a git worktree back into main.

Authorcryborg1211
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Merges a git worktree branch back into the main checkout and cleans up the worktree, reducing clutter and keeping the repository in a consistent state.

Core Features & Use Cases

  • Safe verification that the current path is a worktree and not the main checkout.
  • Merge the worktree branch into the main branch and prune the worktree if the merge is successful.
  • Cleanup the local branch and prune residual references, with clear recovery steps in case of conflicts.
  • Use case: you created a feature-specific worktree to work on a bug fix, and after completion you want to integrate changes and remove the temporary worktree.

Quick Start

Switch to the main checkout, merge the worktree branch back into main, and remove the worktree if the merge succeeds.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: vc:merge-worktree
Download link: https://github.com/cryborg1211/quant_trading_telegram_bot/archive/main.zip#vc-merge-worktree

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.