git rename-branch

Rename a Git branch. Part of git-extras. More information: https://github.com/tj/git-extras/blob/master/Commands.md#git-rename-branch.

git rename-branch {{new_branch_name}}

git rename-branch {{old_branch_name}} {{new_branch_name}}