shortcut tool to run the commands that GitHub suggests when you change from "master" to "main"
MIT License
A tiny tool to do all the local steps GitHub tells you to do once you've change your default branch name from master
to main
.
First, you'll want to change your upstream default branch's name in GitHub.
Next, just run this commmand (assuming you already have Node.js installed):
npx remained
Remained runs the following commmands, which are the same commands that GitHub tells you to run when you rename your default branch:
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a