To rename any local branch:

$ git branch -m oldname newname

Or if you want to rename the current branch:

$ git branch -m newname