commit
Stage and apply changes to a Git repository with a specified commit message. Supports options like amend, fixup, squash, GPG signing, and path-specific commits to streamline version control workflows.
Instructions
Commit staged changes to the git repository.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
all | No | Automatically stage modified and deleted files (-a, --all) | |
allowEmpty | No | Allow empty commits (--allow-empty) | |
allowEmptyMessage | No | Allow empty commit messages (--allow-empty-message) | |
amend | No | Amend the previous commit (--amend) | |
author | No | Override author (--author) | |
cleanup | No | Cleanup mode (--cleanup) | |
date | No | Override author date (--date) | |
dryRun | No | Show what would be committed (--dry-run) | |
file | No | Read commit message from file (-F, --file) | |
fixup | No | Create fixup commit for specified commit (--fixup) | |
gpgSign | No | GPG sign commit (-S, --gpg-sign) | |
include | No | Include given paths in addition to index (-i, --include) | |
message | Yes | Commit message (-m, --message) | |
noGpgSign | No | Do not GPG sign commit (--no-gpg-sign) | |
noStatus | No | Do not include status in commit message template (--no-status) | |
noVerify | No | Bypass pre-commit and commit-msg hooks (-n, --no-verify) | |
only | No | Commit only specified paths (-o, --only) | |
pathspec | No | Limit commit to specified paths | |
quiet | No | Suppress commit summary message (-q, --quiet) | |
reeditMessage | No | Like reuseMessage but invoke editor (-c, --reedit-message) | |
repoPath | Yes | Absolute path to the git repository | |
reuseMessage | No | Reuse message from existing commit (-C, --reuse-message) | |
squash | No | Create squash commit for specified commit (--squash) | |
trailers | No | Add trailers to commit message (--trailer) | |
verbose | No | Show unified diff of changes (-v, --verbose) |