# How to Merge Branches in Github

> To merge branches in GitHub, select 'Compare & pull request', add details, and click 'Create pull request'. Review the changes, click 'Merge pull request', and select 'Confirm merge' to complete the process. You can then choose to delete the merged branch.

Canonical: https://livedemo.ai/tutorials/how-to-merge-branches-in-github/
Apps: GitHub
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a49b3ab56e05a00ff4a18/preview?step=1

## Steps

1. Select 'Compare & pull request'.
2. Add a title and description if desired. Click 'Create pull request'.
3. GitHub will show the changes that will be merged. Review these to make sure everything is correct.
4. On the pull request page, click 'Merge pull request'.
5. Click 'Confirm merge' to confirm action.
6. The branch will now be merged and you can choose to delete the branch after merging if it’s no longer needed.
