Settings

Theme

Show HN: Npx No-Masters

2 points by good-idea 5 years ago · 0 comments · 1 min read


`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

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection