merge

Merge a specified branch into main and delete the source branch and worktree.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/ganpare/ccpocket --skill merge-ganpare
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: merge
Source: https://github.com/ganpare/ccpocket/tree/main/.claude/skills/merge
Command: npx skills add https://github.com/ganpare/ccpocket --skill merge-ganpare

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of merging a working branch into the main branch and cleaning up by deleting the working branch and associated worktree.

Core Features & Use Cases

  • Automated Branch Merging: Merge a working branch into the main branch using Git commands.
  • Cleanup: Delete the working branch and the associated worktree after the merge.
  • Use Case: Ideal for cleaning up after a feature development cycle, reducing branch clutter and maintaining a clean repository state.

Quick Start

Execute the 'merge' skill to merge your working branch into 'main' and remove the branch and worktree.

Frequently Asked Questions about merge

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

FAQPage Schema
How do I merge a git branch into main and automatically delete the source branch?

To merge a git branch into main and delete the source branch, you need a correctly configured Git environment. This allows you to execute the merge skill to merge your working branch into 'main' and remove the branch and worktree.

What is the best way to clean up git worktrees after merging a feature branch?

The best way to clean up git worktrees after merging is automating the deletion of the working branch and associated worktree. This approach reduces branch clutter and maintains a clean repository state after a feature development cycle.

Do I need specific git permissions to merge branches and delete worktrees?

Yes, you need appropriate Git permissions to merge branches and delete worktrees. The process leverages Git commands to merge a specified branch into the main branch and delete the source branch, requiring a correctly configured Git environment.

How does automated branch merging handle repository cleanup for completed features?

Automated branch merging handles repository cleanup by merging a working branch into the main branch using Git commands. It then deletes the working branch and the associated worktree, ensuring streamlined post-merge branch and worktree cleanup operations.

Can I use scripts to automate post-merge branch and worktree cleanup?

Yes, you can use scripts to automate post-merge branch and worktree cleanup. This skill includes script components that merge a specified branch into the main branch and delete the source branch and its worktree, leveraging Git commands.