Commits
Create commits with optional AI-generated messages.
Basic Usage
# Commit staged changes
argo commit -m "feat: add user authentication"
# Stage all changes and commit
argo commit -a -m "fix: resolve login bug"
AI-Generated Messages
Let Gemini AI analyze your changes and generate a commit message:
# Generate message for staged changes
argo commit --ai
# Stage all and generate message
argo commit -a --ai
The AI will:
- Analyze your staged changes (diff)
- Generate a conventional commit message
- Show you the message for confirmation
Requires a Gemini API key.
Options
| Option | Short | Description |
|---|---|---|
--message | -m | Commit message |
--all | -a | Stage all modified files |
--ai | Generate message with AI |
Commit Message Format
argo-rs follows Conventional Commits:
type(scope): description
[optional body]
Common types:
feat: New featurefix: Bug fixdocs: Documentationrefactor: Code refactoringtest: Adding testschore: Maintenance tasks