#048 git branch -M name

Renaming a branch

Use git branch -M new-branch-name to change the previous branch name to the new name

Command Description
branch command to manage branches
-M shortcut to move with force
name new branch name
note It is necessary to be on the branch to be renamed