git-rename-branch1
Rename local branch and push to remote
Usage
git-rename-branch <old-branch>
<new-branch>
Overview
Rename local branch and push the new branch to remote
Options
<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. <new-branch> New branch name
Examples
$ git rename-branch old-name new-name $ git rename-branch new-name
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.