Change default branch name to `main`
See original GitHub issueIt would be good to switch the default branch name here to main
, which is a more inclusive term (and is also now the default for new repos on GitHub). This is a continuation from a brief discussion on the co-maintainers issue: https://github.com/dbader/node-datadog-metrics/issues/55#issuecomment-1251689164
Issue Analytics
- State:
- Created a year ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Easily rename your Git default branch from master to main
Go to the master branch · Rename master to main locally · Get the latest commits from the server · Remove the link...
Read more >How to rename the "master" branch to "main" in Git
In case you are using the Tower Git client, you can rename branches very easily: After creating the new "main" branch on the...
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 >Change git init default branch name - Super User
I'm trying to figure out how to make git init use a different default branch name other than ...
Read more >Changing the default branch - GitHub Docs
Changing the default branch · On GitHub.com, navigate to the main page of the repository. · Under your repository name, click Settings. ·...
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
✅ Done
I also checked the docs on renaming, and I remembered correctly — it does do redirects. So any links to
master
will redirect tomain
: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch