Do you want the Git init command to create a branch named master or main? Or maybe you want the default git init branch name to be something completely different? Here I show you how to use one of the most recent changes to the Git versioning control tool, namely the ability to change the default branch name from master to something a little bit more universally acceptable. If you want an example of how to change the default git init branch name, you've come to the right place.
$ git config --global init.defaultBranch main