Skip to main content

Usage

Description

Merge the specified branch into the current branch. This combines the commit history from both branches.

Arguments

branch
string
required
Branch to merge into the current branch.

Options

-m, --message
string
Custom merge commit message.
--no-ff
boolean
Create a merge commit even if fast-forward is possible.
--dry-run
boolean
Show what would be merged without actually merging.

Examples

Basic Merge

Output:

Merge with Custom Message

Preview Merge (Dry Run)

Output:

Force Merge Commit

Creates a merge commit even when fast-forward is possible, preserving branch history.

Merge Types

Fast-Forward Merge

When the target branch has no new commits since the source branched off, Git can simply move the pointer forward.

Merge Commit

When both branches have diverged, a merge commit is created.

Workflow Example

Error Messages

Cannot Merge into Itself

Solution: Switch to the target branch first, then merge the source branch.

Already Up to Date

This means there are no new commits to merge.

Branch Not Found

Solution: Check the branch name with vibe branch or fetch latest with vibe fetch.

Merge Failed

Solution: Resolve conflicts manually in the web interface or use force options.