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

## SYNOPSIS

`git-rename-branch` &lt;new-branch&gt; &lt;old-branch&gt;

## 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 &lt;<hozefarules@gmail.com>&gt;

## REPORTING BUGS

&lt;<https://github.com/tj/git-extras/issues>&gt;

## SEE ALSO

&lt;<https://github.com/tj/git-extras>&gt;
