How to Change Default Branch in Github
- George Apostolov
This guide is an interactive LiveDemo. Create interactive demos of your own product: Interactive demo software · Interactive customer onboarding guides · Start free
How to Change Default Branch in Github: step-by-step 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.
Quick answer: 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.
About this GitHub tutorial
Switch your default branch in GitHub quickly by updating repository settings and confirming the new selection. This guide shows how to change Default Branch in Github in 7 steps, starting with "Navigate to your repository and click on the 'Settings' tab at the top of the repository" and finishing with "By following these steps, you can easily change the default branch in Github". The interactive demo above is a click-through copy of the real GitHub interface, so you can rehearse each step before doing it in your own account.
Frequently asked questions
How many steps does it take to change Default Branch in Github?
7 steps. Each one is listed in order above, and the demo highlights exactly where to click.
Can I try it without changing my own account?
Yes. Clicking through the demo doesn't touch your GitHub data or settings. Once you know the flow, repeat it in your own workspace.
This tutorial is filed under GitHub. Related guides: How to Change Github Password, How to Change Github Repository from Private to Public and How to Change Github Username. Last reviewed 05 Oct 2026.
Create your first interactive demo in minutes
No credit card required • Start building today





