I changed the default branch name from "master" to "main" for all my repos on GitHub where I am the author and owner. The change was quite easy:
1. git pull # to be sure you are up2date
2. git push origin master:main
3. On GitHub.com go to settings/branches and change the default to main
4. git push origin :master # this is going to delete master branch
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!