Skip to main content

smartcommit plan

Generate an atomic commit plan from your current working diff:

smartcommit plan

How it works:

  1. Reads the current Git diff.
  2. Requests structured commit suggestions from the configured provider.
  3. Shows an interactive preview before creating commits.

In interactive terminals, you can accept and create commits, optionally push, or cancel without changing Git.

Smartcommit can split changes from the same file into multiple logical commits when the hunks are separable.

Recent improvements:

  • Untracked files inside newly created directories are detected reliably.
  • Untracked files in root-level paths and paths with spaces/escaped characters are detected reliably.
  • If a change only creates empty folders, Smartcommit reports that Git does not track empty directories and suggests using a placeholder file like .gitkeep.