DOKK / manpages / debian 10 / git-extras / git-rename-branch.1.en
GIT-RENAME-BRANCH(1) Git Extras GIT-RENAME-BRANCH(1)

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

&lt;new-branch&gt;
New branch name
&lt;old-branch&gt;
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 <hozefarules@gmail.com>

<https://github.com/tj/git-extras/issues>

<https://github.com/tj/git-extras>

September 2018