how to rename master branch code example
Example 1: rename branch to main
$ git branch -m master main
or create a new one
$ git checkout -b main
Example 2: rename branch to main
$ git push -u origin main
$ git branch -m master main
or create a new one
$ git checkout -b main
$ git push -u origin main