Provided by: git-extras_4.6.0-1_all
git-rename-branch - rename local branch and push to remote
git-rename-branch <new-branch> <old-branch>
Rename local branch and push the new branch to remote
<new-branch> New branch name <old-branch> Old branch whose has to be renamed. This is an optional parameter. If no value is supplied then the current branch will be renamed.
$ git rename-branch new-name old-name $ git rename-branch new-name
Written by Hozefa Jodiawalla <firstname.lastname@example.org>
<https://github.com/tj/git-extras> September 2018 GIT-RENAME-BRANCH(1)