merge

Merge a topic branch into the base branch and resolve conflicts in the main worktree.

Updated Aug 30, 2026
One-click install
npx skills add https://github.com/Tyrizx/Tyrizx --skill merge-tyrizx
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: merge
Source: https://github.com/Tyrizx/Tyrizx/tree/main/src/vs/sessions/skills/merge
Command: npx skills add https://github.com/Tyrizx/Tyrizx --skill merge-tyrizx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It automates the process of merging work from a session's topic branch back into the base branch, including committing leftover changes, resolving merge conflicts, and verifying the merge result. ## Core Features & Use Cases - Pre-merge Commit: Detects uncommitted changes in the current worktree and commits them before merging. - Conflict Resolution: Lists conflicted files, resolves conflicts while preserving both sides' intent, and stages the resolved files. - Merge Validation: Confirms the main worktree is clean and that the topic branch is fully merged into the base branch. - Use Case: After finishing a feature in an isolated session worktree, merge the topic branch back into the main branch, resolve any conflicts, and verify the merge completed cleanly. ## Quick Start Merge my session's topic branch back into the base branch and resolve any conflicts that come up.

Frequently Asked Questions about merge

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

FAQPage Schema
How do I merge a topic branch into the main branch with git?▼

Run git merge <topic-branch> from the main worktree, or use git -C <main-worktree-path> merge <topic-branch> to merge without leaving your current worktree. Commit any uncommitted changes first to avoid merge failures.

How do I resolve git merge conflicts?▼

List conflicted files with git diff --name-only --diff-filter=U, then edit each file to preserve the intent of both sides and stage it with git add. Once all conflicts are staged, run git commit --no-edit to complete the merge.

Can I run git commands on another worktree without switching directories?▼

Yes, use git -C <path> followed by the command to operate on a different worktree. This lets you merge, check status, or stage files in the main worktree while staying in your current session worktree.

How do I abort a git merge with conflicts?▼

Run git merge --abort to cancel the in-progress merge and restore the branch to its pre-merge state. This is useful when conflict resolution is unclear and you want to ask for guidance before proceeding.

How do I verify a git merge completed successfully?▼

Check that the worktree is clean with git status --porcelain, then confirm the topic branch is fully merged using git merge-base --is-ancestor <topic-branch> HEAD. A zero exit code means all commits are merged.