1.0.0 • Published 3 years ago
remained v1.0.0
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
1.0.0
3 years ago