dolt-add
Stage changes for the next Dolt commit
TLDR
Add a table to the list of staged tables (stage a table)
Stage all tables
SYNOPSIS
dolt add [options] [<pathspec>...]
PARAMETERS
-A, --all
Stage all changes (new, modified, and deleted files).
<pathspec>...
Paths to files or directories to stage. Can include glob patterns.
-u, --update
Stage modified and deleted files, but not new files.
DESCRIPTION
The dolt add command is used to stage changes in your working directory for inclusion in the next commit.
It tells Dolt to start tracking modifications to files, allowing you to select which changes you want to include in a commit.
Unlike git add, dolt add stages the *values* of the changes, not just the fact that a file has changed. This allows dolt to merge branches without replaying the order of every change.
CAVEATS
Dolt tracks data changes, not just file changes. Unlike `git add`, `dolt add` stages the contents of files. Large changes in a single file may still be split into multiple data edits.
PATHSPEC EXAMPLES
You can use pathspecs to add specific files or directories. For example, dolt add data.csv
will stage changes only to data.csv
. dolt add data/
will stage changes to all files within the data
directory.
IGNORING FILES
Similar to `.gitignore`, Dolt uses a `.doltignore` file to specify intentionally untracked files that Dolt should ignore.