![Forrest logo](/images/logo.png)
dolt-branch:tldr:ebea1
dolt-branch: Duplicate a branch.
$ dolt branch --copy ${branch_name1} ${branch_name2}
try on your machine
The command "dolt branch --copy ${branch_name1} ${branch_name2}" is used in Dolt, a version-controlled data tool, to create a new branch named ${branch_name2} with the same commit history as ${branch_name1}.
Here's an explanation of the components in the command:
- "dolt branch" is the command to create a new branch in Dolt.
- "--copy" is the flag used to indicate that the new branch should have the same commit history as the branch specified.
- "${branch_name1}" is the name of the existing branch from which the commit history will be copied.
- "${branch_name2}" is the name of the new branch that will be created with the copied commit history.
In summary, this command allows you to duplicate the commit history of one branch and create a new branch with an identical history.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.