git-commit
Commit files to the repository. tldr-pages
On several platforms
Several platforms
Open an editor to write a message and commit staged files to the repository
git commitIdentifyCommit staged files to the repository with the specified message
git commit --message "message"IdentifyCommit staged files with a message read from a file
git commit --file path/to/commit_message_fileIdentifyAuto stage all modified and deleted files and commit
git commit --all --message "message"IdentifyCommit staged files and sign them with the specified GPG key (or the one defined in the configuration file if no key_id is specified)
git commit --gpg-sign key_id --message "message"IdentifyUpdate the last commit by adding the currently staged changes, changing the commit's hash, and open an editor to change the message
git commit --amendIdentifyCommit only specific (already staged) files
git commit path/to/file1 path/to/file2 ...IdentifyCreate a commit with the specified message and description
git commit --message "message" --message "description"Identify