How to Switch Branches in GitHub
To ensure there’s no downtime due to pushing problematic code straight to the main branch on GitHub, you should create a new branch and work there. Before you can actually work there, though, you’ll need to switch to it.
Source: howtogeek.com