[Tips]Change the branch name in Git

GOAL

To change the name of the branch

Method

Change the existing branch to the new name with “git branch -m” or “git branch –move”.

> git branch -m <current_name> <new_name>

If you would like to change the name of the branch currently checked out, the first argument <current_name> doesn’t need.