开发者

Easier way to manage multiple branches on GitHub?

开发者 https://www.devze.com 2023-04-10 09:42 出处:网络
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.

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-ma开发者_如何学编程ster/
/Users/macuser/github/my-gh-pages/

instead of

/Users/macuser/github/my/


Yes, there's no problem. Just git clone twice, then switch to the branch(es) you want. push and pull as needed.

0

精彩评论

暂无评论...
验证码 换一张
取 消