# How to restore `master` branch Once you've created your new repo you might be interested to bring `master` branch back to be aligned with your other projects Here'are the steps how to do it: 1. Brings `master` back ```bash git checkout -b master && git push origin -u master ``` 2. Go to Github UI repo under `Settings/Branches` and switch to the new default 3. Delete the `main` branch now ```bash git branch -d main && git push -d origin main ```