github rename main to master code example Example: git rename master to main $ git branch -m master main