Rename a local git branch on console
To rename any local branch:
$ git branch -m oldname newname
Or if you want to rename the current branch:
$ git branch -m newname
To rename any local branch:
$ git branch -m oldname newname
Or if you want to rename the current branch:
$ git branch -m newname