- rename local branch and push to remote
Rename local branch and push the new branch to remote
New branch name
Old branch whose has to be renamed. This is an optional parameter. If no value is supplied then the current branch will be renamed.
$ git rename-branch new-name old-name
$ git rename-branch new-name
Written by Hozefa Jodiawalla < email@example.com