Git Workflows
So far you have been working with two related repositories, pretending that each was ‘owned’ by a separate person on a team. Of course, there might be any number of individuals on a team, each with their own repository clone. Unfortunately, it can become difficult to coordinate changes if everyone is regularly committing to their repositories.
To simplify the workflow, one approach is to dedicate someone as a repository maintainer who is responsible for pulling all changes from everyone else's repositories. Everyone else then regularly pulls from this individual to keep their repositories up to date.
The most common workflow is to host a central repository on a server accessible to everyone on the team. This arrangement requires a particular configuration of the central repository which allows it to be pushed to instead of just pulled from. We will discuss how this works in the next lessons.