1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:05:59 +02:00

dolt-commit: add page (#5527)

* dolt-commit: add page

* add example date for clarity
This commit is contained in:
bl-ue 2021-03-30 05:01:37 -04:00 committed by GitHub
parent dc0617c062
commit 98470c3b35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,32 @@
# dolt commit
> Commit staged changes to tables.
> More information: <https://docs.dolthub.com/interfaces/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`