DEV Community

Joseph Thomas
Joseph Thomas

Posted on

1

Show dev: `npx no-masters`

There has been a lot of talk recently on the topic of renaming the default git repository branch to something other than master.

I'm for it - and I made tool to make it easy:

npx no-masters

will:

  • Create a copy of your master branch and rename it to main
  • (optionally) push this main branch to github and update the default branch
  • (optionally) delete the local and remote master branches
  • (optionally) set up your local git config to use main as the default branch when creating new repositories with git init.

Enjoy, and please share!

If you have (constructive) feedback or come across any issues, DM me on twitter @typeof_goodidea or start an issue in the github repo: https://github.com/good-idea/no-masters

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay