Setting new branches to 'main' by default
You can use: git init --initial-branch=main
to initialize a new branch called ‘main’ instead of master.
To set this globally for new repos you can use: git config --global init.defaultBranch main
Neat, make the magic happen.