Renaming a local git branch

Oct 10 2017

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