git init default to master not main code example Example: set default branch to main on git init $ git config --global init.defaultBranch main