How to Change Default Branch in GitHub
If you want to switch your repository's default branch, it is a straightforward process in GitHub. Follow these steps to get started.
Tyler Harz
|
7 steps
|
46 seconds
1
Navigate to your repository page on GitHub.
2
On your repository page, click Settings.
3
Select Branches from the options on the left sidebar.
4
Click the icon to the right of the branch name to switch to another branch.
5
From the drop-down, select the branch that you want to switch to.
6
Next, click update to perform the switch.
7
Click the big red button saying that you understand the changes you're about to make. After that, your default branch is changed.