Skip to content

Commit

Permalink
New docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmu committed Oct 12, 2024
1 parent adad437 commit dfefb06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/cmd/dolt/commands/checkout.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,17 @@ dolt checkout {{.LessThan}}branch{{.GreaterThan}}
To prepare for working on {{.LessThan}}branch{{.GreaterThan}}, switch to it by updating the index and the tables in the working tree, and by pointing HEAD at the branch. Local modifications to the tables in the working
tree are kept, so that they can be committed to the {{.LessThan}}branch{{.GreaterThan}}.
dolt checkout {{.LessThan}}commit{{.GreaterThan}} [--] {{.LessThan}}table{{.GreaterThan}}...
Specifying table names after a commit reference (branch, commit hash, tag, etc.) updates the working set to match that commit for one or more tables, but keeps the current branch. Local modifications to the tables named will be overwritten by their versions in the commit named.
dolt checkout -b {{.LessThan}}new_branch{{.GreaterThan}} [{{.LessThan}}start_point{{.GreaterThan}}]
Specifying -b causes a new branch to be created as if dolt branch were called and then checked out.
dolt checkout {{.LessThan}}table{{.GreaterThan}}...
To update table(s) with their values in HEAD `,
Synopsis: []string{
`{{.LessThan}}branch{{.GreaterThan}}`,
`{{.LessThan}}commit{{.GreaterThan}} [--] {{.LessThan}}table{{.GreaterThan}}...`,
`{{.LessThan}}table{{.GreaterThan}}...`,
`-b {{.LessThan}}new-branch{{.GreaterThan}} [{{.LessThan}}start-point{{.GreaterThan}}]`,
`--track {{.LessThan}}remote{{.GreaterThan}}/{{.LessThan}}branch{{.GreaterThan}}`,
Expand Down

0 comments on commit dfefb06

Please sign in to comment.