HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

dolt merge — Join two or more development histories together. More information: <https://docs.dolthub.com/cli-ref

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandtwodevelopmentdolt mergeclimorejoinhistories

Problem

How to use the dolt merge command: Join two or more development histories together. More information: <https://docs.dolthub.com/cli-reference/cli#dolt-merge>.

Solution

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:
dolt merge --no-ff {{[-m|--message]}} "{{message}}" {{branch_name}}


Abort the current conflict resolution process:
dolt merge --abort

Code Snippets

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

dolt merge --no-ff {{[-m|--message]}} "{{message}}" {{branch_name}}

Abort the current conflict resolution process

dolt merge --abort

Context

tldr-pages: common/dolt merge

Revisions (0)

No revisions yet.