git-rename-branch - Man Page

rename local branch and push to remote

Examples (TL;DR)

Synopsis

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

Description

Rename local branch and push the new branch to remote

Options

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

&lt;new-branch&gt;

New branch name

Examples

$ git rename-branch old-name new-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>

Referenced By

git-extras(1).

July 2019 Git Extras