Currently, I'm working on a PHP project with three team members on GH. We split up tasks, but came to the conclusion that when contributor1 codes one screen and styles it in our CSS file, this will all be lost when contributor2 would push their own CSS file onto our main branch.
Does anyone know a good workflow on how to prevent this from happening?
Our current workflow:
- C1 has created a project and added C2 & C3 as contributors.
- C2 and C3 forked the project
- Everyone cloned it into their VS Code and created a local side branch.
- After done working, we commit and merge to our own main branch.
- We create pull requests to the main project (repository from C1 where everything should be connected).