1
dotdeb
8y

Hello guys, I've got a question. When you're working with someone in a project using a VCS, how do you go when implementing stuff? Do you create a new branch and then merge to master or do you tell to the other guy that you're going to do "this thing" so he doesn't do it or what? I've never collaborated with someone and I would like to have a little information about this topic. The things I've built have been all by myself so If some day I ever plan to work with someone else I rather know this stuff already.

Comments
  • 1
    Most of the colab vcs work I do is at work. The project is of a reasonable size where generally we agree on an API and then work on either side of it. So basically don't bother with branching unless we're really going to break something (rework). If API requirements change we sit a few meters away. Some people do work on branches, but tbh it's usually possible to do continuous integration.
  • 1
    We create a branch for each change request then merge back to main when development is complete. Then deploy from main.

    We all work on the same branch so conflicts are caught early and prompt a discussion.
  • 0
    Horror time.
    Google has all its code in one single repo, in one single branch, master. That's it. All of it.

    There's like 70, 000 test cases to pass before you get to push though
Add Comment