git
work the same with dolt
, but with tables instead of file names. Follow along with the tutorial below to learn the basics.user.name
and user.email
config variables. This information will be used to attribute each Dolt commit to you.dolt init
creates a repository, just like git init
.dolt status
does the same thing as git status
.dolt add
, commit them with dolt commit
. Both these commands work just like their git
equivalents.dolt log
does the same thing as git log
, and shows us the history of the database.git
, it's a good idea to make your changes on a branch, then merge them back to main. The commands work the same as in git. Use either dolt branch
or more commonly, dolt checkout -b
to create a new branch.INSERT
, UPDATE
and DELETE
statements. Dolt has a built-in SQL shell, or start a server and connect to it with any tool that can connect to MySQL.dolt sql -q
.feature
branch, checkout main
and merge your changes back. dolt merge
works just like git merge
.