from Hacker News

Show HN: Npx No-Masters

by good-idea on 7/6/20, 10:55 PM with 0 comments

`npx no-masters`

https://github.com/good-idea/no-masters

I spent my 4th of July putting together a one-line command that changes your default branch from `master` to `main`, and optionally:

- 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

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

https://twitter.com/typeof_goodidea