2025-03-14 21:59:59 -06:00
|
|
|
# dolt
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
> An SQL database that you can fork, clone, branch, merge, push, and pull just like a Git repository.
|
2025-03-14 21:59:59 -06:00
|
|
|
> Some subcommands such as `commit` have their own usage documentation.
|
|
|
|
|
> More information: <https://docs.dolthub.com/cli-reference/cli>.
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Initialize a new Dolt data repository:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`dolt init`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Show the current working tree status:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`dolt status`
|
|
|
|
|
|
|
|
|
|
- Add a remote Dolt repository:
|
|
|
|
|
|
|
|
|
|
`dolt remote add {{repository_name}} {{url}}`
|
|
|
|
|
|
|
|
|
|
- Stage changes to tables:
|
|
|
|
|
|
|
|
|
|
`dolt add {{table_name}}`
|
|
|
|
|
|
|
|
|
|
- Record staged changes to the repository:
|
|
|
|
|
|
|
|
|
|
`dolt commit {{[-m|--message]}} "{{commit_message}}"`
|
|
|
|
|
|
|
|
|
|
- Push local changes to a remote:
|
|
|
|
|
|
|
|
|
|
`dolt push`
|
|
|
|
|
|
|
|
|
|
- Pull changes from a remote:
|
|
|
|
|
|
|
|
|
|
`dolt pull`
|