dolt-add

stage table changes for commit

TLDR

Stage all changes
$ dolt add .
Stage a specific table
$ dolt add [table_name]
Stage multiple tables
$ dolt add [table1] [table2]
Stage everything, equivalent to `.`
$ dolt add -A
Stage a table that is ignored by `dolt_ignore`
$ dolt add --force [table_name]

SYNOPSIS

dolt add [table...]

DESCRIPTION

dolt add stages table changes for the next commit. Where `git add` operates on files, `dolt add` stages database tables whose rows or schema have been modified, added, or dropped.The command marks tables with pending changes to be included in the next commit. Staging allows selective committing across multiple tables, the same index concept as Git's, applied to schema and data modifications instead of file contents.Naming tables explicitly stages only those; `.` or -A stages every modified table in the working set.

PARAMETERS

-A, --all

Stage any and all changes (adds, deletes, and modifications), except for ignored tables.
-f, --force
Allow adding otherwise ignored tables.

INSTALL

sudo pacman -S dolt
brew install dolt
nix profile install nixpkgs#dolt

CAVEATS

Tables matched by the `doltignore` system table are skipped even by **-A**; use **--force** to stage one anyway. Staging is only meaningful for the CLI workflow: writes made through `dolt sql-server` land directly in the working set, and depending on the session's `@@dolttransaction_commit` setting they may be committed without ever passing through the staging area.

SEE ALSO

dolt(1), dolt-commit(1), dolt-status(1), git-add(1)

RESOURCES

Source code · Documentation