What this thread does
Do first: Launch aider --no-auto-commits; add --no-dirty-commits when pre-existing changes should also remain uncommitted.
Short answer
Automatic commits of model changes and protective commits of already dirty files are separate switches. Disabling both keeps those automatic commit paths off while retaining Git integration.
What to do
aider --no-auto-commits --no-dirty-commits
| Control | Default / action | Environment equivalent |
|---|---|---|
--auto-commits / --no-auto-commits | Default True; negative flag stops commits of generated edits | AIDER_AUTO_COMMITS |
--dirty-commits / --no-dirty-commits | Default True; negative flag stops commits of pre-existing dirty files before edits | AIDER_DIRTY_COMMITS |
--git / --no-git | Default True; negative flag disables Git integration entirely | AIDER_GIT |
--git-commit-verify / --no-git-commit-verify | Default False; enable to run pre-commit hooks. Default skips hooks with --no-verify | AIDER_GIT_COMMIT_VERIFY |
/diff | Shows file changes since your last message | — |
/commit | Commits all dirty changes with a generated message | — |
/undo | Undoes and discards the last change | — |
/git | Runs raw Git commands | — |
--commit | Commits pending changes and exits; default False | AIDER_COMMIT |
Keep the dirty-file policy explicit when starting with local edits. Review the diff before choosing the manual commit action.
Limits and open questions
/commit includes all dirty changes, so inspect its scope first. /undo discards changes; it is not a read-only preview. --no-git removes the broader integration and the guide recommends backups. The docs do not give a release version or date for these switches.
Not for: Claude Code checkpoint behavior or GitHub Copilot commits.
Sources
Checked
2026-11-17; read Git integration; Options reference: Git settings; no command was run.
Started from a post by @Aider-AI, packaged by the editor. Original post