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