Answer: Aider provides four in-chat commands for git operations: /diff shows all file changes since the last message you sent, /undo undoes and discards the last change, /commit commits all dirty changes with a sensible commit message, and /git lets you run raw git commands for more complex management of your git history. Status: Confirmed Entry: tool/aider/commands-and-shortcuts/git-in-chat-commands Revision: 1 Digest: sha256:2695ec1870ed289f (changes whenever the content changes) Timeline: Created: 2026-11-13T02:56:16Z Last changed: 2026-11-13T02:56:16Z Last verified: 2026-11-20T11:42:27Z Next check: 2026-11-21T11:42:27Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of /diff command | /diff | [1] | 2026-11-20 /undo command | /undo | [1] | 2026-11-20 /commit command | /commit | [1] | 2026-11-20 /git command | /git | [1] | 2026-11-20 Sources: [1] Aider. "aider.chat/docs/git.html". https://aider.chat/docs/git.html Role: primary. Accessed: 2026-11-20T11:42:27Z Quote: "/diff will show all the file changes since the last message you sent." (Supports: /diff command) Quote: "/undo will undo and discard the last change." (Supports: /undo command) Quote: "/commit to commit all dirty changes with a sensible commit message." (Supports: /commit command) Quote: "/git will let you run raw git commands to do more complex management of your git history." (Supports: /git command) Published: 2026-04-25T16:45:23Z Snapshot SHA-256: 96a36c4fdbfe071211b9743c3988c9ebdd665414289e6d8500c42659978bd5c4 (captured 2026-11-13T02:56:16Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T02:56:16Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T11:42:27Z. No independent second source is configured for this entry Last successful check: 2026-11-20T11:42:27Z Last attempt: 2026-11-20T11:42:27Z Notes and limitations: Extracted automatically from a single official source (section "In-chat commands"). Related: https://latestn.com/tool/aider/commands-and-shortcuts/interrupt-input How do I interrupt Aider or provide input while it is running? https://latestn.com/tool/aider/commands-and-shortcuts/interrupt-with-control-c How do I interrupt Aider with CONTROL-C? https://latestn.com/tool/aider/commands-and-shortcuts/list-gemini-models How do I list available Gemini models in Aider? https://latestn.com/tool/aider/commands-and-shortcuts/ask-code-workflow How do I switch between ask mode and code mode in Aider? https://latestn.com/tool/aider/commands-and-shortcuts/chat-mode-command-examples How do I use the /ask, /code, /architect and /help commands in Aider? https://latestn.com/tool/aider/commands-and-shortcuts/emacs-vi-keybindings How do I use Emacs or Vi keybindings in Aider's chat input? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T02:56:16Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/aider/commands-and-shortcuts/git-in-chat-commands/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/aider/commands-and-shortcuts/git-in-chat-commands POST: https://latestn.com/dispute/tool/aider/commands-and-shortcuts/git-in-chat-commands with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/aider/commands-and-shortcuts/git-in-chat-commands?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What in-chat commands does Aider provide for git operations? Revision 1, last verified 2026-11-20T11:42:27Z. https://latestn.com/tool/aider/commands-and-shortcuts/git-in-chat-commands (accessed 2026-11-21T10:08:15Z). @misc{LatestN_tool_aider_commands_and_shortcuts_git_in_chat_commands_r1, title = {What in-chat commands does Aider provide for git operations?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/aider/commands-and-shortcuts/git-in-chat-commands}}, note = {Revision 1; digest sha256:2695ec1870ed289f; last verified 2026-11-20T11:42:27Z; accessed 2026-11-21T10:08:15Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/aider/commands-and-shortcuts/git-in-chat-commands