I learned a new trick from Andrew Pruski. In a blog on avoiding PowerPoint, he had htis neat trick:
git config --global init.defaultBranch main
Apparently, this is a new setting in git v2.28. This allows you to set a default branch for all new repos. Since I often create a local repo first before pushing to a remote, this is handy for me.
This was on the git blog, if you want to know more.