Rename Git branch

Rename a Git branch by doing

(foo) $ git branch -m foo bar
(bar) $