← 返回命令列表

Linux command

dolt-merge 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Merge branch into

dolt merge [branch_name]

Merge with commit

dolt merge [branch_name] -m "[Merge message]"

Abort in-progress merge

dolt merge --abort

Squash merge

dolt merge --squash [branch_name]

说明

dolt merge joins development histories by incorporating changes from another branch into the current branch. It combines table modifications, resolving changes where possible. When merge conflicts occur (same row modified differently in both branches), the merge pauses for manual resolution. Conflict markers identify problematic rows that need attention before completing the merge. Squash merges combine all branch changes into a single commit, useful for maintaining clean history when feature branches have many small commits.

参数

-m _MESSAGE_
Commit message for merge.
--squash
Squash commits into single change.
--abort
Abort current merge operation.
--no-commit
Merge but don't auto-commit.
--help
Display help information.

FAQ

What is the dolt-merge command used for?

dolt merge joins development histories by incorporating changes from another branch into the current branch. It combines table modifications, resolving changes where possible. When merge conflicts occur (same row modified differently in both branches), the merge pauses for manual resolution. Conflict markers identify problematic rows that need attention before completing the merge. Squash merges combine all branch changes into a single commit, useful for maintaining clean history when feature branches have many small commits.

How do I run a basic dolt-merge example?

Run `dolt merge [branch_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -m _MESSAGE_ do in dolt-merge?

Commit message for merge.