AI Commit
Autogit’s AI Commit feature analyzes your staged changes and generates a meaningful commit message.
How It Works
Section titled “How It Works”- Stage your changes
- Press 7 to open the AI Commit popup
- Autogit analyzes your diff and generates a commit message
- Edit the message if needed
The AI analyzes:
- File changes (additions, modifications, deletions)
- Code context and patterns
- Recent commit history for style matching
Conventional Commits
Section titled “Conventional Commits”AI-generated messages follow the Conventional Commits specification:
<type>(<scope>): <description>Examples:
feat(auth): add OAuth2 login flowfix(api): handle null response from serverdocs(readme): update installation instructionsrefactor(utils): extract date formatting logictest(auth): add unit tests for token validationchore(deps): upgrade React to v18Common types:
feat— new featurefix— bug fixdocs— documentationrefactor— code restructuringtest— adding testschore— maintenance tasks
Keyboard Shortcuts
Section titled “Keyboard Shortcuts”| Key | Action |
|---|---|
| 7 | Open AI Commit popup |
| p | Toggle auto-push |
Auto-Push Option
Section titled “Auto-Push Option”Toggle auto-push with p in the commit popup. When enabled:
- After a successful commit, Autogit pushes to the remote
- Keeps your PR branches up to date automatically
- Shows push progress in the status bar
Small, Focused Commits
Section titled “Small, Focused Commits”Make commits that change one thing. The AI generates better messages for focused diffs.
Meaningful Staging
Section titled “Meaningful Staging”Stage related changes together. If you’re fixing a bug and refactoring, make two separate commits.
Review Before Committing
Section titled “Review Before Committing”Always read the generated message. Edit it if it doesn’t accurately describe your changes.