Infinite Wishes 🏳️‍⚧️🚀

Is a weblog by Emma Humphries

27 Oct 2020 » No gods, no master branches

GitHub Screenshot
Credit: Screenshot by the author

Update Jan 23, 2023: GitHub has automated renaming your default branch from the web UI, so it’s even easier to do the right thing with your branch names.

I’ve been wanting to change the default branch for some projects on GitHub from master to main but until recently I could only publish GitHub Pages projects from master or a GitHub Pages branch. GitHub recently removed that limitation so you can publish from an arbitrary branch.

Moving your default branch takes a few short steps, which Steven Mortimer from the R community documented.

Don’t forget to go to your project’s options and update the branch you use for GitHub pages.

Json Manystripes encourages you to update your projects.

Photo of Json Manystripes, a grey and brown tabby cat

Replies to this post are welcome. You can send an email, or a WebMention. Be kind, not clever.

Send a WebMention