question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change default branch name to `main`

See original GitHub issue

It 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:closed
  • Created a year ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dbadercommented, Sep 20, 2022

✅ Done Screen Shot 2022-09-20 at 9 52 28 AM

1reaction
Mr0grogcommented, Sep 20, 2022

I also checked the docs on renaming, and I remembered correctly — it does do redirects. So any links to master will redirect to main: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found