set default branch in git code example
Example 1: change git default branch
git config --global init.defaultBranch <defaultBranchName>
Example 2: Change default branch on git
git branch -m deploy prod
git fetch origin
git branch -u origin/prod prod
git remote set-head origin -a