/git

Merge code from one branch to another with conflict resolution.

Syntax

/git:merge [to-branch] [from-branch]

Arguments

ArgumentDefaultDescription
to-branchmainTarget branch to merge into
from-branchCurrent branchSource branch to merge from

How It Works

Uses git-manager agent to:

  1. Checkout target branch
  2. Merge source branch
  3. Resolve conflicts if any
  4. Complete merge

Examples

# Merge current branch to main
/git:merge main

# Merge feature to develop
/git:merge develop feature/auth

# Merge hotfix to main and develop
/git:merge main hotfix/security
/git:merge develop hotfix/security

Conflict Resolution

If conflicts occur:

  1. Agent identifies conflicting files
  2. Analyzes changes from both branches
  3. Resolves conflicts intelligently
  4. Completes merge

Prerequisites

  • gh CLI must be installed and authorized
  • Git repository initialized
  • Both branches must exist

Key Takeaway: Use /git:merge to merge branches with automatic conflict resolution via git-manager agent.