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
masterbranch and rename it tomain - (optionally) push this
mainbranch to github and update the default branch - (optionally) delete the local and remote
masterbranches - (optionally) set up your local git config to use
mainas the default branch when creating new repositories withgit 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
Top comments (0)