How to Change Default Branch in Github
- George Apostolov
- 05 Sep 2025
Guide
Navigate to your repository and click on the 'Settings' tab at the top of the repository.
Under the 'Default branch' section, click on the button that allows you to switch to another branch.
Select the new branch you want to set as the default from the dropdown list.
Click 'Update' to confirm the change.
Confirm the action by clicking the 'I understand, update the default branch'.
After completing these steps, the new branch will be set as the default for your repository.
By following these steps, you can easily change the default branch in Github.
Create your first interactive demo in minutes
No credit card required • Start building today


