Branching with GitHub Flow and creating a branch on GitHub
Let’s dive further into GitHub, where we’ll learn how branching works and why branches are important. You and your friends are building a one-page portfolio website. You want to add new features without messing up what’s already there. That’s where GitHub Flow comes in.
GitHub Flow, in the context of branching, is a simple yet effective way to manage changes in a project, such as when building a one-page portfolio website.
Setting up your own space – creating a new feature branch
To start using GitHub Flow, we need to create a new feature branch.
So, what’s a branch? Think of it as a copy of the website where you can experiment without affecting the main website (the main branch).
You decide to add a Skills section to the website. So, you create a new branch named add-skills-section
. Now, you have a separate space to work on this feature.