git cmd rename branch code example
Example 1: git rename local branch
git branch -m <oldname> <newname>
Example 2: git rename branch
git push origin –u new-name
git branch -m <oldname> <newname>
git push origin –u new-name