I am trying to figure out how to work with more than 1 developer in a git repository. Let me explain how we worked so far.
We have 3 developers working on the same project, for example dev1, dev2 and dev3. The master branch is on the git server, and this is checked, what we do when the developer first clones the repo, he creates a new branch that allows you to say branch-dev1 on his local machine, and he works on this branch. And when everything looks stable, he pushes his branch to the central repo. Therefore, its branch-branch-dev1 is available on a centralized server. The project manager then combines his clip to the master branch and resolves the conflict, if any. Like dev2, dev3 pushes its branches branch-dev2, branch-dev3, and again their branch is merged and conflicts are resolved, if any. Then the next day, each of them pulls his head from a centralized server and receives commits from other developers. And they work in iterations.
What I want to know is this correct?
source share