`npx no-masters`<p>https://github.com/good-idea/no-masters<p>I spent my 4th of July putting together a one-line command that changes your default branch from `master` to `main`, and optionally:<p>- Deletes the local master branch
- Updates the origin's default branch to main
- Deletes the origin's master branch
- Updates your local git config to use main as the default branch when using git init<p>I know there is a lot of debate this topic. I'm obviously for making the change, and wanted to make it easy for others. I won't be in the comments to debate things. If you have any (constructive) feedback, open an issue in the Github tracker, or DM me on twitter @typeof_goodidea<p>https://twitter.com/typeof_goodidea