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