change name to branch 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: change branch name
$ git branch -m <new_name>