git branch -m old-branch-name new-branch-name

Easy way to rename branches, works with master branch.