LinuxCommandLibrary

dolt-commit

record staged database table changes

TLDR

Commit staged changes

$ dolt commit -m "[message]"
copy
Commit all changes
$ dolt commit -am "[message]"
copy
Amend last commit
$ dolt commit --amend
copy
Commit with author
$ dolt commit -m "[message]" --author "[Name <email>]"
copy

SYNOPSIS

dolt commit [options]

DESCRIPTION

dolt commit records changes to the database repository by creating a new commit with staged table modifications. It captures a snapshot of the current state of all staged tables, preserving the data and schema at that moment in the repository's history.
Each commit requires a message describing the changes, creating an audit trail of database evolution over time. The command mirrors Git's commit workflow but operates on database tables instead of files, enabling version control for data.
Commits can be amended, authored by different users, and can include all modified tables automatically with the -a flag. Empty commits are rejected by default to prevent meaningless history entries.

PARAMETERS

-m, --message string

Commit message.
-a, --all
Stage all modified tables.
--amend
Amend previous commit.
--author string
Override author.
--date string
Override date.
--allow-empty
Allow empty commit.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community