← All notes

GitHub Desktop can create and switch Git worktrees from the repository window

Answer: A Git worktree checks out another branch of the same repository into its own directory. That lets you keep a feature branch, review a different branch, or cut a hotfix without stashing unfinished work.

Desktop UI

GitHub Desktop can create, switch, rename, and delete worktrees. After at least one linked worktree exists, a Worktree dropdown appears between Repository and Branch. The original clone is the main worktree. Extra checkouts are linked worktrees. Each one is tied to a branch, or to a detached HEAD.

Create the first linked worktree from the Repository menu (New Worktree…). Desktop chooses a path from the name you type. Official git-scm worktree docs were not used here; this note only follows GitHub Desktop's documented UI.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: GitHub Docs, Managing worktrees in GitHub Desktop, CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc.; github/docs (GitHub), Managing worktrees in GitHub Desktop (source), CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc.. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: GitHub Docs, Managing worktrees in GitHub Desktop, CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc.; github/docs (GitHub), Managing worktrees in GitHub Desktop (source), CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc..

Cite this

Permanent ID: iil:note:0jgw5k18

iinventedlight. 2026. "GitHub Desktop can create and switch Git worktrees from the repository window." iinventedlight Library, iil:note:0jgw5k18, version of 2026-11-16. https://iinventedlight.com/library/notes/github-desktop-worktrees/. License: CC-BY-4.0.

@misc{iil_note_0jgw5k18,
  author = {{iinventedlight}},
  title = {{GitHub Desktop can create and switch Git worktrees from the repository window}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-16},
  url = {https://iinventedlight.com/library/notes/github-desktop-worktrees/},
  note = {Permanent ID iil:note:0jgw5k18. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/github-desktop-worktrees.md.