Git · Branches and merges
git branch -m
Renames the current branch or another branch.
Syntax
git branch -m <new-name>Example
Example
git branch -m feature/login
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.