Understanding GitHub Flow in practice – two developers, two features, one project
Let’s explore how GitHub Flow works through an example with two developers, Alex and Jamie, working on a project to improve a website. They are each responsible for different features, and they use GitHub Flow to manage their contributions seamlessly.
The main branch is always a starting point for creating a feature branch. This is the stable version of the project, like the foundation of a building. Alex and Jamie will both start their work from here.
Let’s try to explain this step by step.
Alex needs to add a contact form. They create a branch called feature/contact-form from the main branch. This branch is their workspace.
While Alex was working on the new feature branch they created previously, Jamie started on a gallery feature in a branch called feature/gallery:
Figure 4.7 – GitHub Flow – branch creation
Both Alex and Jamie...