rename main to master in git code example
Example 1: git rename master to main
$ git branch -m master main
Example 2: rename master to main
// must already have added somethign to HEAD
$ git branch -m master main
$ git branch -m master main
// must already have added somethign to HEAD
$ git branch -m master main