change the branch in git\ code example
Example 1: git command to create a branch from another branch
$ git checkout -b myfeature dev
Example 2: canging branch in git
$ git branch
$ git checkout -b myfeature dev
$ git branch