git schange master to main code example
Example 1: rename branch to main
$ git push -u origin main
Example 2: rename branch to main
$ git push origin --delete master
$ git push -u origin main
$ git push origin --delete master