r/GithubCopilot • u/pantinor • 24d ago
Help/Doubt ❓ How to disable worktrees?
Lately noticing CP keeps creating a worktree in my local repo instead of using the current branch. I have to prompt it every time to not do that. Can this be disabled in cp settings?
5
Upvotes
3
u/Lonsarg 24d ago
Yes this is VERY annoying.
Enough for us ti stop promoting Copilot App companywide and just promote CLI instead.
Why this stupid default of creating a new worktree by default, this should be advanced non-default setting.
1
u/pantinor 24d ago
Solution is in settings, under sessions, under app instructions, add when working locally use the existing checkout. Fo not create the worktree
4
u/Astrophizz 24d ago
If you're in the agents window you can switch it to branch mode and it will just make changes on the current branch, or another of your choosing.
1
u/Alternative-Class834 22d ago
Funny, I am switching to the app from CLI, to make it easier for me to use sessions and worktrees 😅
1
u/AutoModerator 24d ago
Hello /u/pantinor. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
0
u/[deleted] 23d ago
[deleted] — view deleted comment