git branch -m old_branch new_branch

 

Vlastimil Pošmura, 2019