DEV Community

Discussion on: Professional Git Workflow & GitHub Setup for (React) Developers (incl screencast)

Collapse
 
scottrinoz profile image
Scott Robertson

Where I work, we are actually normally two steps away from master/main. We have a Project/Feature branch that acts as a defacto main for the current feature we are building as a team, and individualy, work on a Story branch off project, not only can we not commit to main, we also can't commit to the project without a pull request, and PRs from Project into main are only allowed by a select few. The expectation is that we continually pull from project to local and resolve diffs before committing and raising new PRs. For us main is sacrosanct and never gets touched until code is in production.(Which is a whole another level)