Answer: To undo a mistake or rewind in Gemini CLI, type `/rewind` or press Esc twice at any point in a chat, then select the restore point before the undesired changes and choose what to revert. Status: Confirmed Entry: tool/gemini-cli/features/rewind-undo Revision: 1 Digest: sha256:e8655a1f7e2e3cf0 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:18:01Z Last changed: 2026-11-13T03:18:01Z Last verified: 2026-11-20T12:52:00Z Next check: 2026-11-21T12:52:00Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Rewind command | /rewind | [1] | 2026-11-20 Keyboard shortcut | Esc | [1] | 2026-11-20 Restore point selection | before | [1] | 2026-11-20 Revert option 1 | Rewind conversation | [1] | 2026-11-20 Revert option 2 | Revert code changes | [1] | 2026-11-20 Revert option 3 | Rewind both | [1] | 2026-11-20 Sources: [1] Google. "Manage sessions and history". https://geminicli.com/docs/cli/tutorials/session-management.md Role: primary. Accessed: 2026-11-20T12:52:00Z Quote: "At any point in a chat, type `/rewind` or press **Esc** twice." (Supports: Rewind command, Keyboard shortcut) Quote: "Select the point _before_ the undesired changes occurred." (Supports: Restore point selection) Quote: "**Rewind conversation:** Only remove the chat history." (Supports: Revert option 1) Quote: "**Revert code changes:** Keep the chat history but undo the file edits." (Supports: Revert option 2) Quote: "**Rewind both:** Restore everything to exactly how it was." (Supports: Revert option 3) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: ffc06eceacf82a942f4ca49da87242d93fa63b16804ec49806571d329aa80e07 (captured 2026-11-13T03:18:00Z) 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-13T03:18:01Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:52:00Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:52:00Z Last attempt: 2026-11-20T12:52:00Z Notes and limitations: Extracted automatically from a single official source (section "How to rewind time (Undo mistakes)"). Related: https://latestn.com/tool/gemini-cli/features/system-prompt-ui-indicator What does the UI indicator show when a custom system prompt is active in Gemini CLI? https://latestn.com/tool/gemini-cli/features/system-prompt-variable-substitution How does variable substitution work in a custom system prompt for Gemini CLI? https://latestn.com/tool/gemini-cli/features/task-statuses What task statuses can I set with Gemini CLI tracker tools? https://latestn.com/tool/gemini-cli/features/release-types What release types does Gemini CLI have? https://latestn.com/tool/gemini-cli/features/resume-worktree How do I resume work in a Git worktree with Gemini CLI? https://latestn.com/tool/gemini-cli/features/rewind-options What options are available when rewinding in Gemini CLI? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:18:01Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/features/rewind-undo/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/gemini-cli/features/rewind-undo POST: https://latestn.com/dispute/tool/gemini-cli/features/rewind-undo with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/features/rewind-undo?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I undo a mistake or rewind in Gemini CLI? Revision 1, last verified 2026-11-20T12:52:00Z. https://latestn.com/tool/gemini-cli/features/rewind-undo (accessed 2026-11-21T09:52:33Z). @misc{LatestN_tool_gemini_cli_features_rewind_undo_r1, title = {How do I undo a mistake or rewind in Gemini CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/features/rewind-undo}}, note = {Revision 1; digest sha256:e8655a1f7e2e3cf0; last verified 2026-11-20T12:52:00Z; accessed 2026-11-21T09:52:33Z} } 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/gemini-cli/features/rewind-undo