# How to Change Default Branch in Github

> To change your default branch in GitHub, navigate to your repository settings, locate the default branch section, select the new branch from the dropdown list, click update, and confirm the action to apply the new default branch successfully.

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

## Steps

1. Navigate to your repository and click on the 'Settings' tab at the top of the repository.
2. Under the 'Default branch' section, click on the button that allows you to switch to another branch.
3. Select the new branch you want to set as the default from the dropdown list.
4. Click 'Update' to confirm the change.
5. Confirm the action by clicking the 'I understand, update the default branch'.
6. After completing these steps, the new branch will be set as the default for your repository.
7. By following these steps, you can easily change the default branch in Github.
