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