dolt-branch

Manage Dolt branches.

TLDR

List local branches (current branch is highlighted by *)

$ dolt branch
copy


List all local and remote branches
$ dolt branch --all
copy


Create a new branch based on the current branch
$ dolt branch [branch_name]
copy


Create a new branch with the specified commit as the latest
$ dolt branch [branch_name] [commit]
copy


Rename a branch
$ dolt branch --move [branch_name1] [branch_name2]
copy


Duplicate a branch
$ dolt branch --copy [branch_name1] [branch_name2]
copy


Delete a branch
$ dolt branch --delete [branch_name]
copy


Display the name of the current branch
$ dolt branch --show-current
copy

Copied to clipboard