Git: rename local branch


To rename a local branch in Git, simply run:

$ git branch -m <oldname> <newname>