Renaming a local git branch

The simplest way to rename a branch in git is first to checkout that branch and
then do something like this:

git branch -m new-branch-name