Clone just the stable and one other branch in git?

后端 未结 4 1515
粉色の甜心
粉色の甜心 2020-12-23 10:44

I\'m just getting started with git and I have a question. My app has 10 other developers working on it, each one having their own branch like dev_XXXXX. So if I do a clone o

4条回答
  •  抹茶落季
    2020-12-23 11:06

    I think the more important question here is what others will be pushing, not what you will be cloning or pulling. Since each developer is working on his own branch, another question is how you end up with a common code base. Are the developers merging their branches to master? And are they then pushing their changed master branch to a central repository? If that is the case, there is no way for you to pull the other developers' branches anyway.

    If that is not the case, I fail to see how you can form a functioning team.

    And as I final thought: I'd be curious to know why you wouldn't want to clone the other developers' branches to your repository?

提交回复
热议问题