1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

dolt-branch: add page (#5479)

This commit is contained in:
bl-ue 2021-03-19 12:51:21 -04:00 committed by GitHub
parent cc0bdde4a3
commit 0894ff362d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,36 @@
# dolt branch
> Manage Dolt branches.
> More information: <https://github.com/dolthub/dolt>.
- 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`