TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Npx No-Masters

2 pointsby good-ideaalmost 5 years ago
`npx no-masters`<p>https:&#x2F;&#x2F;github.com&#x2F;good-idea&#x2F;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&#x27;s default branch to main - Deletes the origin&#x27;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&#x27;m obviously for making the change, and wanted to make it easy for others. I won&#x27;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:&#x2F;&#x2F;twitter.com&#x2F;typeof_goodidea

no comments

no comments