Rename git branch

Rename git branch

First checkout to the branch which you want to rename:

To remove an old branch from remote: