Change default branch to main
See original GitHub issueI’d like to propose we create a main
branch and make that the default branch in this repository.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
5 steps to change GitHub default branch from master to main
Step 1 - Move the master branch to 'main' · Step 2 - Push 'main' to remote repo · Step 3 - Point...
Read more >git how to change default branch for everything I do?
2 Answers 2 · rename your local branch from master to main: git branch -m master main · push to main: git push...
Read more >Configure git to use 'main' as the primary branch
Changing the primary branch to use 'main' · Check the name of your branch by running the following command on your home computer...
Read more >How to rename the "master" branch to "main" in Git
have to change the "default" branch or remove any "protected" status for "master". You will then be able to delete the old "master"...
Read more >Change git init default branch name - Super User
Now when you run git init , main will be your default branch. This is similar to running git config --global init.defaultBranch main...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yup, that’s what I used!
For future reference, GitHub now supports branch renaming, so now you can easily rename
master
tomain
without worrying about breaking PRs (they will re-track the newmain
branch automatically).