git default branch main code example
Example 1: git create new default branch
git branch -m master main # renames "master" to "main"
git push -u origin main # push new branch
Example 2: set the default branch to main
git config --global init.defaultBranch main