how to change the default branch to master in git code example
Example 1: change git default branch
git config --global init.defaultBranch <defaultBranchName>
Example 2: set the default branch to main
git config --global init.defaultBranch main
Example 3: 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