Update your primary branch from `master` to `main`
by Akshay Arora
- Step 1
Click Settings
- Step 2
Click Branches
- Step 3
Click "Edit" where you see the pulse
- Step 4
Click Rename master to:
- Step 5
Type in main
- Step 6
Click Rename branch
Description:
GitHub: How to change your primary branch from `master` to `main`
Total steps:
6
Time to complete:
1 min
Explore More Guides
💪
Do more, in less time.
Shortcuts for everything on the internet.