Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

41
dolt-branch Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# dolt branch
> Manage Dolt branches.
> More information: <https://docs.dolthub.com/cli-reference/cli#dolt-branch>.
- 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`