Rename Local branch name
- if you are on that branch then no need to add
<old-name>
-m
will rename local branch name- verify using
git branch
- if you are on another branch then must use
<old-name>
Push to Remote ( if you have pushed the local name to remote)
- Remember to put
:
before old-name
-u
is optional; you can add it on next command
that’s all