Summary
Git allows you to rename a branch using the git branch -m command.
1
This command can be used to rename both local and remote branches.
1
To rename a local branch, use the git branch -m <oldname> <newname> command.
1
To rename a remote branch, use the git push origin :<oldname> <newname> command.
1
After renaming the branch, you need to delete the old branch from the remote repository.
1
According to