# Renaming the Local master Branch to main git branch -m master main # Renaming the Remote master Branch as Well git push -u origin main # !! Set default branch to main git push origin --delete master