snippetbashTip
dolt commit — Commit staged changes to tables. More information: <https://docs.dolthub.com/cli-reference/cli#dolt-
Viewed 0 times
commandcommitstagedclitablesdolt commitchangesmore
Problem
How to use the
dolt commit command: Commit staged changes to tables. More information: <https://docs.dolthub.com/cli-reference/cli#dolt-commit>.Solution
dolt commit — Commit staged changes to tables. More information: <https://docs.dolthub.com/cli-reference/cli#dolt-commit>.Commit all staged changes, opening the editor specified by
$EDITOR to enter the commit message:dolt commitCommit all staged changes with the specified message:
dolt commit {{[-m|--message]}} "{{commit_message}}"Stage all unstaged changes to tables before committing:
dolt commit {{[-a|--all]}}Use the specified ISO 8601 commit date (defaults to current date and time):
dolt commit --date "{{2021-12-31T00:00:00}}"Use the specified author for the commit:
dolt commit --author "{{author_name}} <{{author_email}}>"Allow creating an empty commit, with no changes:
dolt commit --allow-emptyIgnore foreign key warnings:
dolt commit {{[-f|--force]}}Code Snippets
Commit all staged changes, opening the editor specified by `$EDITOR` to enter the commit message
dolt commitCommit all staged changes with the specified message
dolt commit {{[-m|--message]}} "{{commit_message}}"Stage all unstaged changes to tables before committing
dolt commit {{[-a|--all]}}Use the specified ISO 8601 commit date (defaults to current date and time)
dolt commit --date "{{2021-12-31T00:00:00}}"Use the specified author for the commit
dolt commit --author "{{author_name}} <{{author_email}}>"Context
tldr-pages: common/dolt commit
Revisions (0)
No revisions yet.