how to rename master to main for github 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