how to change the master branch to main code example Example: change master to main git $ git branch -m master main