Here’s how to do it:
- Navigate to the repository where the branches are located.
- Click on the 'Compare & pull request' button.
- Click the branch dropdowns to change the base and compare branches.
- To merge branches, select 'Main' as the base branch.
- Select the 'compare' branch that you want to compare from.
- Click 'Create pull request'.
- Check the changes being merged to ensure everything looks correct.
- Click 'Create pull request'.
- Once approved, click 'Merge pull request'.
- Confirm by clicking 'Confirm merge'.
- By following these steps, merging branches helps integrate changes and maintain an updated main branch with the latest development progress.