1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 10:02:10 +02:00
tldr/pages/common/dolt-branch.md
Juri Dispan 0f0c9da99e
*: replace dead more information links (#11542)
* *: replace dead more informtion links

* dolt

* Apply suggestions from code review

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-11-19 22:07:13 +01:00

732 B

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 branch

  • List all local and remote branches:

dolt branch --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 --move {{branch_name1}} {{branch_name2}}

  • Duplicate a branch:

dolt branch --copy {{branch_name1}} {{branch_name2}}

  • Delete a branch:

dolt branch --delete {{branch_name}}

  • Display the name of the current branch:

dolt branch --show-current