From 0894ff362db76bc552e533e573a3de7942290370 Mon Sep 17 00:00:00 2001 From: bl-ue <54780737+bl-ue@users.noreply.github.com> Date: Fri, 19 Mar 2021 12:51:21 -0400 Subject: [PATCH] dolt-branch: add page (#5479) --- pages/common/dolt-branch.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/common/dolt-branch.md diff --git a/pages/common/dolt-branch.md b/pages/common/dolt-branch.md new file mode 100644 index 0000000000..4f21e2374f --- /dev/null +++ b/pages/common/dolt-branch.md @@ -0,0 +1,36 @@ +# dolt branch + +> Manage Dolt branches. +> More information: . + +- 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`