
6 Merging a branch locally
6.1 Merging a branch locally
- A PR is essentially doing a merge on GitHub, you can merge branches locally as well 
- Say we created a new branch - edit-readmeand made a commit on it
- To merge - edit-readmeinto- mainswitch to- main
- Select - edit-readmeand click “Create a merge commit” 
- Then push the new commits onto - mainupto GitHub (when appropriate) 
- Then you can delete the - edit-readmebranch 
- Confirm the deletion 