How to set up separate local repository for a branch? #23235
-
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! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think Git - git-worktree Documentation |
Beta Was this translation helpful? Give feedback.
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.git-scm.com
Git - git-worktree Documentation