Branches - mschlosser22/chino-valley-ranchers GitHub Wiki
Overview
Branches let you create a separate version of the website which you can preview before merging into the production branch of the site. This could be useful when making lots/major changes to the site all at once to give you a place to preview before committing to them going live.
Note: Merging into the main/production branch can cause unexpected changes to the live site. It's good to triple check these branches before merging them into the main branch.
Create New Branch
On the top toolbar click the branch dropdown button then click the new branch button and give it a name. You should see your active branch automatically switch you over to this new branch you created.
Merge Branch into Production
Once you are satisfied with the way the new branch looks you can then merge it into the production branch to have the changes take affect there. From any branch other than the main branch click the Pull Request button in the top toolbar to begin the merge process, follow the on screen prompts to finish the merge.
Previewing Branch Environments
In Github itself you can view these branch environments. In the right hand sidebar near the bottom there will be a list of all active environments and deployment history for each. You can preview them from here.