LinuxCommandLibrary

dolt-branch

list, create, or delete database branches

TLDR

List branches

$ dolt branch
copy
Create a branch
$ dolt branch [name]
copy
Delete a branch
$ dolt branch -d [name]
copy
Rename current branch
$ dolt branch -m [new_name]
copy
List remote branches
$ dolt branch -r
copy

SYNOPSIS

dolt branch [options] [branchname_]

DESCRIPTION

dolt branch lists, creates, or deletes branches in a Dolt database repository. Branches work like Git branches but for versioned databases, allowing parallel development of database schemas and data.
Without arguments, the command lists all local branches with an asterisk marking the current branch. Creating a branch captures the current database state as a starting point for divergent development. Branches can be used for testing schema changes, experimenting with data transformations, or maintaining multiple versions of a dataset.
Branch management enables sophisticated workflows like feature branches for schema migrations, hotfix branches for data corrections, and release branches for versioned datasets.

PARAMETERS

-d, --delete

Delete a branch.
-D
Force delete branch.
-m, --move
Rename branch.
-r, --remotes
List remote branches.
-a, --all
List all branches.
-c, --copy
Copy branch.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community