Answer: You exit a Git worktree session using `/quit` or `Ctrl+C`; Gemini leaves the worktree intact so your work is not lost and does not automatically delete your worktree or branch. Status: Confirmed Entry: tool/gemini-cli/commands-and-shortcuts/exit-worktree-session Revision: 1 Digest: sha256:78e877f1ff07420f (changes whenever the content changes) Timeline: Created: 2026-11-13T03:17:33Z Last changed: 2026-11-13T03:17:33Z Last verified: 2026-11-20T12:51:01Z Next check: 2026-11-21T12:51:01Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of exit commands | /quit | [1] | 2026-11-20 worktree handling on exit | does not automatically delete | [1] | 2026-11-20 cleanup responsibility | manually | [1] | 2026-11-20 Sources: [1] Google. "Git Worktrees (experimental)". https://geminicli.com/docs/cli/git-worktrees.md Role: primary. Accessed: 2026-11-20T12:51:01Z Quote: "When you exit a worktree session (using `/quit` or `Ctrl+C`)" (Supports: exit commands) Quote: "it **does not automatically delete**" (Supports: worktree handling on exit) Quote: "You are responsible for cleaning up your worktrees manually once you are finished with them." (Supports: cleanup responsibility) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: 9044595387df93c22e428c08591a6e11accb410c9f53f0628f6339ec17a73e2b (captured 2026-11-13T03:17:32Z) 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:17:33Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:51:01Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:51:01Z Last attempt: 2026-11-20T12:51:01Z Notes and limitations: Extracted automatically from a single official source (section "How to exit a Git worktree session"). Related: https://latestn.com/tool/gemini-cli/commands-and-shortcuts/gemma-commands What commands does Gemini CLI provide for managing the Gemma local model server? https://latestn.com/tool/gemini-cli/commands-and-shortcuts/generate-eval-report How do I generate a Gemini CLI eval report? https://latestn.com/tool/gemini-cli/commands-and-shortcuts/install-command-options What options does the Gemini CLI extensions install command support, such as --ref or --auto-update? https://latestn.com/tool/gemini-cli/commands-and-shortcuts/enter-plan-mode How do I enter Plan Mode in Gemini CLI? https://latestn.com/tool/gemini-cli/commands-and-shortcuts/enter-shell-mode How do I enter Shell mode in Gemini CLI? https://latestn.com/tool/gemini-cli/commands-and-shortcuts/exit-plan-mode How do I exit Plan Mode in Gemini CLI? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:17:33Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/commands-and-shortcuts/exit-worktree-session/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/commands-and-shortcuts/exit-worktree-session POST: https://latestn.com/dispute/tool/gemini-cli/commands-and-shortcuts/exit-worktree-session with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/commands-and-shortcuts/exit-worktree-session?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I exit a Git worktree session in Gemini CLI? Revision 1, last verified 2026-11-20T12:51:01Z. https://latestn.com/tool/gemini-cli/commands-and-shortcuts/exit-worktree-session (accessed 2026-11-21T10:01:42Z). @misc{LatestN_tool_gemini_cli_commands_and_shortcuts_exit_worktree_session_r1, title = {How do I exit a Git worktree session in Gemini CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/commands-and-shortcuts/exit-worktree-session}}, note = {Revision 1; digest sha256:78e877f1ff07420f; last verified 2026-11-20T12:51:01Z; accessed 2026-11-21T10:01:42Z} } 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/commands-and-shortcuts/exit-worktree-session