From 98470c3b35494c95586b07cdba1e4fa582ae9f58 Mon Sep 17 00:00:00 2001 From: bl-ue <54780737+bl-ue@users.noreply.github.com> Date: Tue, 30 Mar 2021 05:01:37 -0400 Subject: [PATCH] dolt-commit: add page (#5527) * dolt-commit: add page * add example date for clarity --- pages/common/dolt-commit.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/dolt-commit.md diff --git a/pages/common/dolt-commit.md b/pages/common/dolt-commit.md new file mode 100644 index 0000000000..1041d2b4c6 --- /dev/null +++ b/pages/common/dolt-commit.md @@ -0,0 +1,32 @@ +# dolt commit + +> Commit staged changes to tables. +> More information: . + +- Commit all staged changes, opening the editor specified by `$EDITOR` to enter the commit message: + +`dolt commit` + +- Commit all staged changes with the specified message: + +`dolt commit --message "{{commit_message}}"` + +- Stage all unstaged changes to tables before committing: + +`dolt commit --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-empty` + +- Ignore foreign key warnings: + +`dolt commit --force`