We are adopting the use of a homologation server here in our company, but we still do not know how to organize the development flow from this paradigm, since currently each developer when it wants to consolidate the implemented modifications performs push or merge directly to origin / master , using or not a branch for this.
This relationship occurs only between the developer machine and the production server, which in turn has its hooks / post-receive script in each repository for automated deploy to the < strong> / var / www .
Our new environment will work as shown below, where each square is a remote and each circle represents a fixed branch :
I have not yet defined whether the project will run from the branch test and origin (production) branch master , or if this distinction is made only from remote , both projects being executed from the master , because I do not know the ideal solution in these cases. What do you suggest? How do you usually use it with your teams?