git-rename-branch
Rename a Git branch locally and on the remote
TLDR
Rename current branch
$ git rename-branch [new_name]
Rename specific branch$ git rename-branch [old_name] [new_name]
SYNOPSIS
git rename-branch [oldname] newname
DESCRIPTION
git rename-branch renames a branch both locally and on the remote. Part of git-extras, it handles the local rename and remote tracking update in a single command.
SEE ALSO
git-branch(1), git-extras(1)
