Answer: Use the `--worktree` (`-w`) flag to create an isolated worktree and start Gemini CLI in it. You can pass a name (e.g., `gemini --worktree feature-search`) or omit it for a random name (e.g., `gemini --worktree`). Status: Confirmed Entry: tool/gemini-cli/features/use-git-worktrees Revision: 1 Digest: sha256:689cf2357f302184 (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:00Z Next check: 2026-11-21T12:51:00Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of flag | --worktree | [1] | 2026-11-20 short flag | -w | [1] | 2026-11-20 named example | gemini --worktree feature-search | [1] | 2026-11-20 random name example | gemini --worktree | [1] | 2026-11-20 worktree directory | .gemini/worktrees/ | [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:00Z Quote: "Use the `--worktree` (`-w`) flag to create an isolated worktree and start Gemini" (Supports: flag, short flag) Quote: "gemini --worktree feature-search" (Supports: named example) Quote: "gemini --worktree" (Supports: random name example) Quote: "directory name (within `.gemini/worktrees/`) and the branch name." (Supports: worktree directory) 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:00Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:51:00Z Last attempt: 2026-11-20T12:51:00Z Notes and limitations: Extracted automatically from a single official source (section "How to use Git worktrees"). Related: https://latestn.com/tool/gemini-cli/features/use-model-steering How do I use model steering in Gemini CLI while the agent is working? https://latestn.com/tool/gemini-cli/features/web-fetch-url-limit How many URLs can I include in a single Gemini CLI web_fetch request? https://latestn.com/tool/gemini-cli/features/web-fetch-use-cases What can I use the Gemini CLI web_fetch tool for, such as summarizing or comparing web pages? https://latestn.com/tool/gemini-cli/features/todo-task-statuses What statuses can a Gemini CLI todo task have? https://latestn.com/tool/gemini-cli/features/tracker-state-location Where does Gemini CLI store the task tracker state? https://latestn.com/tool/gemini-cli/features/tracker-tools-list What tracker tools does Gemini CLI provide for managing tasks? 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/features/use-git-worktrees/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/use-git-worktrees POST: https://latestn.com/dispute/tool/gemini-cli/features/use-git-worktrees with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/features/use-git-worktrees?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I start a Gemini CLI session in a Git worktree? Revision 1, last verified 2026-11-20T12:51:00Z. https://latestn.com/tool/gemini-cli/features/use-git-worktrees (accessed 2026-11-21T09:52:40Z). @misc{LatestN_tool_gemini_cli_features_use_git_worktrees_r1, title = {How do I start a Gemini CLI session in a Git worktree?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/features/use-git-worktrees}}, note = {Revision 1; digest sha256:689cf2357f302184; last verified 2026-11-20T12:51:00Z; accessed 2026-11-21T09:52:40Z} } 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/use-git-worktrees