GitHub to replace 'master' with 'main' starting next month
All new Git repositories on GitHub will be named "main" instead of "master" post September, 2020.
Why rename main?
mainis the most popular replacement for
masterthat we’re seeing across GitHub. We like it because it’s short, it keeps your muscle memory intact, and it translates well across most languages. We’re using main for our newly-created repositories and for the repositories we’re moving now, like dependabot-core.
On October 1, 2020: newly-created repositories will default to main On October 1, 2020, any new repositories you create will use main as the default branch, instead of master.
This change does not impact any of your existing repositories, existing repositories will continue to have the same default branch they have now.
You can opt out of this change at any time. To opt out, set the default branch for new repositories for your user, organization, or enterprise:
For users, on the github.com/settings/repositories page
For organization owners, on the github.com/organizations/YOUR-ORGANIZATION/.. page
For enterprise administrators, on the github.com/enterprises/YOUR-ENTERPRISE/sett.. page
"By the end of the year, we'll make it seamless for existing repositories to rename their default branch," GitHub said.
When you rename the branch, we'll retarget your open PRs and draft releases, move your branch protection policies, and more - all automatically.
What are your views on this? What are the other features you wish GitHub had?
Repository for Ultimate Resource in python. Drop a star if you find it useful! Got anything to add? Open a PR on the same!
You can connect with me on Twitter
Also, have a look at my other Blogs:
- Python 3.9: All You need to know
- The Ultimate Python Resource hub
- GitHub CLI 1.0: All you need to know
- Become a Better Programmer
- How to make your own Google Chrome Extension
- Create your own Audiobook from any pdf with Python
- You are Important & so is your Mental Health!