How to set up separate local repository for a branch?

Hi everyone, I’m using Github Desktop and my team has set up a new branch. I’d like to set up a separate local repository for this branch: one folder on my mac for master, and another folder for branch.

Is there a way to do this? I keep finding tutorials for how to set up a branch, but not how to make a second local repo.

Thank you!

1 Like

I think git worktree is what you want: It lets you have multiple working directories (for example using different branches) using one local repository, without duplicating all the other repository data. I don’t know if Github Desktop can manage worktrees.