git branch -m old-name new-name

Category: Git - Core

git branch -m old-name new-name

Rename a local branch

Renames a local branch. -m means 'move/rename'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.