how to change name of the branch git code example
Example 1: edit branch name git
$ git checkout Branch-Name-You-Want-to-Change
$ git branch -m New-Branch-Name
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