Change default branch to main
kaicataldo opened this issue · comments
I'd like to propose we create a main
branch and make that the default branch in this repository.
FWIW, GitHub seems to officially recommend waiting until later this year when they will add tools to automate the process: https://github.com/github/renaming#later-this-year
My reasoning for doing it now is that this is a small repo without much automation and doesn't have a lot of contributors, so I don't think it'll be a difficult process. Would you prefer to wait?
We'll need to update all of our pull request targets and the branch protection rules for master if we don't wait until it's automated. In my experience retargetting a pull request can partially break reviews and history. Can we wait until we have more merged first?
After waiting a while without further PRs being landed, this is now done. We now have parody with the main prettier/prettier
repository.
For future reference, GitHub now supports branch renaming, so now you can easily rename master
to main
without worrying about breaking PRs (they will re-track the new main
branch automatically).
Yup, that's what I used!