rename branch on console update it local code example Example: git rename local branch git branch -m <oldname> <newname>