rename master to main
See original GitHub issueIf someone has a local clone, then can update their locals like this:
$ git checkout master
$ git branch -m master main
$ git fetch
$ git branch --unset-upstream
$ git branch -u origin/main
$ git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to rename the "master" branch to "main" in Git
Renaming "master" to "main" in Tower ... In case you are using the Tower Git client, you can rename branches very easily: After...
Read more >How to rename your "master" branch to "main" - GRRR Tech
From the branches page of your repository, you can rename the branch by clicking the little pencil icon. When renaming your branch, GitHub...
Read more >How to rename the master branch to main - DEV Community
Rename master to main. First thing to do is to checkout the master branch if you didn't already: git checkout master # Also...
Read more >How to rename your Git master branch to main. - GitHub
Change your default branch on GitHub by going to your GitHub repository in your browser, and navigate to Settings > Branches and click...
Read more >Why GitHub renamed its master branch to main | TheServerSide
GitHub renamed the master branch to main for any Git repository, as it addresses cultural change like so many organizations that have nixed ......
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 Free
Top 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
The benefit is the reduction of language in tech that is uncomfortable from a race relations perspective in the US.
At the same time, it is just good naming. Finding good names in software is always hard. And
master
is particularly useless choice of name: There is nothing themaster
branch particularly excels at. But it is where the main part of the development happens. Hence,main
is much more clear, concise and appropriate name.https://www.zdnet.com/article/github-to-replace-master-with-alternative-term-to-avoid-slavery-references/