commit¶
Generate a commit message and commit staged/unstaged changes.
Syntax¶
Arguments¶
commit does not accept positional arguments.
Options¶
| Short | Long | Default | Description |
|---|---|---|---|
-m |
--message TEXT |
- | Use the given commit message directly |
| - | --edit / --no-edit |
edit |
Open editor to refine the generated message |
-y |
--yes |
False |
Skip interactive confirmations and commit directly |
Examples¶
Generate a message and open editor:
Use a specific message (no AI):
Generate a message without editing:
Output Notes / Common Errors¶
- When
-mis not provided, AutoShip uses a local model to generate a Conventional Commits style message from the diff and stats. - The editor is validated against the configured
allowed_editorslist. - Running outside a Git repository prints an error and suggests running
git initfirst.