how to make main default git branch code example Example: set the default branch to main git config --global init.defaultBranch main