change branch name from github code example
Example 1: how to change branch name in github
$ git branch -m OLD-BRANCH-NAME NEW-BRANCH-NAME
$ git fetch origin
$ git branch -u origin/NEW-BRANCH-NAME NEW-BRANCH-NAME
Example 2: git change branch name
git branch –m old-name new-name