git config --global init.defaultBranch <new_default_branch_name>

Key points