vcmerge-worktree
SolidMerge a git worktree branch back into the main checkout and clean up the worktree. Use when the user asks to merge, archive, or clean up a completed worktree.
AI & Automation 852 stars
197 forks Updated 1 weeks ago MIT
Install
Quality Score: 91/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Merge Worktree
Use this skill for safe worktree merge and cleanup. Skip RIPER-5 mode routing for this operational task.
## Workflow
1. Confirm the current path is a worktree, not the main checkout.
2. Run `git status --short` and stop if there are uncommitted changes.
3. Capture the current branch and worktree path.
4. Locate the main checkout with `git worktree list`.
5. Switch to the main checkout and update `main` if the user wants latest remote changes included.
6. Merge the worktree branch into `main`.
7. If merge succeeds, remove the worktree with `git worktree remove <path>`.
8. Delete the local branch with `git branch -d <branch>`.
9. Run `git worktree prune`.
10. Report the merge result and whether a push is still needed.
## Safety
- Never run from `main` or `master`.
- Never delete a branch before a successful merge.
- Stop on conflicts and explain the exact recovery state.
Details
- Author
- withkynam
- Repository
- withkynam/vibecode-pro-max-kit
- Created
- 2 weeks ago
- Last Updated
- 1 weeks ago
- Language
- JavaScript
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
Code & Development Listed
merge-worktree
Squash-merge the current worktree branch into the main branch (or a specified target). Analyzes git history and source code to craft a comprehensive commit message.
8 Updated today
HyperAITeam Code & Development Listed
git-worktree
This skill manages Git worktrees for isolated parallel development. It handles creating, listing, switching, and cleaning up worktrees with a simple interactive interface, following KISS principles.
2 Updated 1 weeks ago
wan-huiyan AI & Automation Listed
finish-worktree
Completes feature branch work by rebasing, pushing, monitoring CI, and squash merging to main
4 Updated 2 days ago
dravr-ai