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