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