github / github/app

New worktree on an existing branch

Open
#1,981 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
2.1k
Forks
153
PR merge metrics
No merged PRs in 30d

Description

I'd like to create a new session in a new worktree of a GitHub repo, starting from a specific branch. There doesn't seem to be a way: if I select "New worktree" in the dropdown I can only select the `master`/default branch (while if I select "Local" I can switch among the various local branches).

In theory I can create a new worktree and then checkout the branch I want, but it's time- (and token-) consuming. It should be technically simple to add this as a valid option through the UI.

---
| Field | Value |
| --- | --- |
| App version | 1.0.22 |
| OS | Windows 10.0.26200 |
| Theme | GitHub |
| Path | /chat |
| Tenure | Week 5 |

Contributor guide

Open the contributing guide

Research direction

Reproduce the flow at /chat by opening the “New worktree” dropdown and compare it with the “Local” branch selector. Trace how branch choices are populated, then verify that an existing local branch can be selected and that the new worktree starts from it.

Written by the indexing model from the issue text.

Assessment

Tech stack
github
Domain
desktop
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.