-- set the default branch to main
git config --global init.defaultBranch main
-- check the git settings on terminal
$ git config --list
user.name=John Doe
user.email=johndoe@example.com
color.status=auto
color.branch=auto
color.interactive=auto
color.diff=auto