Skip to content

Commit 0894ff3

Browse files
authored
dolt-branch: add page (#5479)
1 parent cc0bdde commit 0894ff3

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

pages/common/dolt-branch.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# dolt branch
2+
3+
> Manage Dolt branches.
4+
> More information: <https://github.com/dolthub/dolt>.
5+
6+
- List local branches (current branch is highlighted by `*`):
7+
8+
`dolt branch`
9+
10+
- List all local and remote branches:
11+
12+
`dolt branch --all`
13+
14+
- Create a new branch based on the current branch:
15+
16+
`dolt branch {{branch_name}}`
17+
18+
- Create a new branch with the specified commit as the latest:
19+
20+
`dolt branch {{branch_name}} {{commit}}`
21+
22+
- Rename a branch:
23+
24+
`dolt branch --move {{branch_name1}} {{branch_name2}}`
25+
26+
- Duplicate a branch:
27+
28+
`dolt branch --copy {{branch_name1}} {{branch_name2}}`
29+
30+
- Delete a branch:
31+
32+
`dolt branch --delete {{branch_name}}`
33+
34+
- Display the name of the current branch:
35+
36+
`dolt branch --show-current`

0 commit comments

Comments
 (0)