git-rename-branch
- rename local branch and push to remote
git-rename-branch
<old-branch> <new-branch>
Rename local branch and push the new branch to remote
<old-branch>
Old branch whose has to be renamed. This is an optional parameter. If no value is supplied then the current branch will be renamed.
<new-branch>
New branch name
$ git rename-branch old-name new-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>