Forrest logo
back to the dolt tool

dolt-checkout:tldr:eb73c

dolt-checkout: Create new branch and switch to it.
$ dolt checkout -b ${branch_name}
try on your machine

The command dolt checkout -b ${branch_name} is used in the Dolt Version Control System (VCS) to create a new branch and switch to it.

Here's a breakdown of the command:

  • dolt: This is the command-line tool for interacting with Dolt.
  • checkout: This sub-command is used to switch between branches or restore a working tree file.
  • -b: This option is used to create a new branch.
  • ${branch_name}: This is a placeholder representing the name you want to give to the new branch. You should replace ${branch_name} with an actual branch name of your choice.

When you run this command, Dolt will create a new branch with the name provided and switch the context of your working tree to the new branch. This means that any new commits you make after running this command will be made on the newly created branch, without affecting the commits on other branches.

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.
back to the dolt tool