Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-09 00:16:26 +00:00
parent f8bee5305f
commit 9e2d0f72f1
116 changed files with 330 additions and 330 deletions

View File

@@ -10,19 +10,19 @@ source: https://github.com/tldr-pages/tldr.git
- Commit staged files to the repository with a message:
`git commit --message "{{message}}"`
`git commit {{[-m|--message]}} "{{message}}"`
- Commit staged files with a message read from a file:
`git commit --file {{path/to/commit_message_file}}`
`git commit {{[-F|--file]}} {{path/to/commit_message_file}}`
- Auto stage all modified and deleted files and commit with a message:
`git commit --all --message "{{message}}"`
`git commit {{[-a|--all]}} {{[-m|--message]}} "{{message}}"`
- Commit staged files and sign them with the specified GPG key (or the one defined in the configuration file if no argument is specified):
`git commit --gpg-sign {{key_id}} --message "{{message}}"`
`git commit {{[-S|--gpg-sign]}} {{key_id}} {{[-m|--message]}} "{{message}}"`
- Update the last commit by adding the currently staged changes, changing the commit's hash:
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
- Create a commit, even if there are no staged files:
`git commit --message "{{message}}" --allow-empty`
`git commit {{[-m|--message]}} "{{message}}" --allow-empty`