Skip to content

AI Commit

Autogit’s AI Commit feature analyzes your staged changes and generates a meaningful commit message.

  1. Stage your changes
  2. Press 7 to open the AI Commit popup
  3. Autogit analyzes your diff and generates a commit message
  4. Edit the message if needed

The AI analyzes:

  • File changes (additions, modifications, deletions)
  • Code context and patterns
  • Recent commit history for style matching

AI-generated messages follow the Conventional Commits specification:

<type>(<scope>): <description>

Examples:

feat(auth): add OAuth2 login flow
fix(api): handle null response from server
docs(readme): update installation instructions
refactor(utils): extract date formatting logic
test(auth): add unit tests for token validation
chore(deps): upgrade React to v18

Common types:

  • feat — new feature
  • fix — bug fix
  • docs — documentation
  • refactor — code restructuring
  • test — adding tests
  • chore — maintenance tasks
KeyAction
7Open AI Commit popup
pToggle auto-push

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

Make commits that change one thing. The AI generates better messages for focused diffs.

Stage related changes together. If you’re fixing a bug and refactoring, make two separate commits.

Always read the generated message. Edit it if it doesn’t accurately describe your changes.