I am trying to clear my confusion about how to work with more than 1 developers on a git repository. Let me explain how we worked till now.
We have 3 developers working on a same project lets say dev1, dev2, and dev3. Master branch on a git server and that is checked out, what we do is, when a developer clones the repo for the first time, he creates a new branch lets say branch-dev1 on his local machine, and he works on that branch. And when things look stable, he pushes his branch to central repo. So his branch branch-dev1 is available in the centralized server. A project manager, then merges his brach to the master branch, and resolves conflict if there is any. Similarly dev2, dev3 pushes their branches branch-dev2, branch-dev3, and again their branch is merge and conflicts resolved if any. Then the next day, each one of them pull the head from the centralises server and gets the commits from other devs. And they work in iterations.
What I want to know is, is this the correct approach?