1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 15:02:09 +02:00
tldr/pages/common/dolt-commit.md
Juri Dispan 0f0c9da99e
*: replace dead more information links (#11542)
* *: replace dead more informtion links

* dolt

* Apply suggestions from code review

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-11-19 22:07:13 +01:00

32 lines
795 B
Markdown

# 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 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`