Update master to main github code example
Example: Update master to main github
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a