remained
v1.0.0
Published
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`.
Downloads
2
Readme
remained
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
.
Usage
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
What does remained do?
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