how to change nameof branch in terminal github code example
Example 1: rename local branch github
git branch -m oldname newname
Example 2: change name of branch github
git push origin :old-name-of-branch-on-github
git branch -m old-name-of-branch-on-github new-name-for-branch-you-want
git push origin new-name-for-branch-you-want