Renaming a local git branch

2017-10-10

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