git-rename-branch (1) - Linux Manuals
git-rename-branch: rename local branch and push to remote
Command to display git-rename-branch
manual in Linux: $ man 1 git-rename-branch
NAME
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
<new-branch>
New branch name
<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.
EXAMPLES
$ git rename-branch new-name old-name
$ git rename-branch new-name
AUTHOR
Written by Hozefa Jodiawalla <
hozefarules [at] gmail.com>
REPORTING BUGS
<
https://github.com/tj/git-extras/issues>
Pages related to git-rename-branch