git-rename-branch(1) - rename local branch and push to remote

1. git-rename-branch(1)
2. Git Extras
3. git-rename-branch(1)

## NAME

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

## 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>

2. July 2019
3. git-rename-branch(1)