git-rename-branch man page

git-rename-branch — rename local branch and push to remote

Synopsis

git-rename-branch <new-branch> <old-branch>

Description

Rename local branch and push the new branch to remote

Options

&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.

Examples

$ git rename-branch new-name old-name

$ git rename-branch new-name

Author

Written by Hozefa Jodiawalla <hozefarules@gmail.com>

Reporting Bugs

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

See Also

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

Info

September 2016