snippetbashTip
dolt branch — Manage Dolt branches. More information: <https://docs.dolthub.com/cli-reference/cli#dolt-branch>.
Viewed 0 times
doltcommandclidolt branchmanagebranchesinformationmore
Problem
How to use the
dolt branch command: Manage Dolt branches. More information: <https://docs.dolthub.com/cli-reference/cli#dolt-branch>.Solution
dolt branch — Manage Dolt branches. More information: <https://docs.dolthub.com/cli-reference/cli#dolt-branch>.List local branches (current branch is highlighted by
*):dolt branchList all local and remote branches:
dolt branch {{[-A|--all]}}Create a new branch based on the current branch:
dolt branch {{branch_name}}Create a new branch with the specified commit as the latest:
dolt branch {{branch_name}} {{commit}}Rename a branch:
dolt branch {{[-m|--move]}} {{branch_name1}} {{branch_name2}}Duplicate a branch:
dolt branch {{[-c|--copy]}} {{branch_name1}} {{branch_name2}}Delete a branch:
dolt branch {{[-d|--delete]}} {{branch_name}}Display the name of the current branch:
dolt branch --show-currentCode Snippets
List local branches (current branch is highlighted by `*`)
dolt branchList all local and remote branches
dolt branch {{[-A|--all]}}Create a new branch based on the current branch
dolt branch {{branch_name}}Create a new branch with the specified commit as the latest
dolt branch {{branch_name}} {{commit}}Rename a branch
dolt branch {{[-m|--move]}} {{branch_name1}} {{branch_name2}}Context
tldr-pages: common/dolt branch
Revisions (0)
No revisions yet.