I have a GitHub repository with two branches master and gh-pages. I am experiencing problems when switching between branches locally. Files and folders are not being copied correctly.
Is it possible to have each branch in a separate directory locally?
i.e.
/Users/macuser/github/my-master/
/Users/macuser/github/my-gh-pages/
instead of
/Users/macuser/github/my/
Yes, there’s no problem. Just
git clonetwice, then switch to the branch(es) you want.pushandpullas needed.