how to change local branch name code example
Example 1: git rename local branch
git branch -m <oldname> <newname>
Example 2: git rename a local branch
git branch -m <new-branch-name>
git branch -m <oldname> <newname>
git branch -m <new-branch-name>