2025-03-14 21:59:59 -06:00
|
|
|
# dolt merge
|
|
|
|
|
|
|
|
|
|
> Join two or more development histories together.
|
|
|
|
|
> More information: <https://docs.dolthub.com/cli-reference/cli#dolt-merge>.
|
|
|
|
|
|
|
|
|
|
- Incorporate changes from the named commits into the current branch:
|
|
|
|
|
|
|
|
|
|
`dolt merge {{branch_name}}`
|
|
|
|
|
|
|
|
|
|
- Incorporate changes from the named commits into the current branch without updating the commit history:
|
|
|
|
|
|
|
|
|
|
`dolt merge --squash {{branch_name}}`
|
|
|
|
|
|
|
|
|
|
- Merge a branch and create a merge commit even when the merge resolves as a fast-forward:
|
|
|
|
|
|
|
|
|
|
`dolt merge --no-ff {{branch_name}}`
|
|
|
|
|
|
|
|
|
|
- Merge a branch and create a merge commit with a specific commit message:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`dolt merge --no-ff {{[-m|--message]}} "{{message}}" {{branch_name}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Abort the current conflict resolution process:
|
|
|
|
|
|
|
|
|
|
`dolt merge --abort`
|