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

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs