how to go up a branch in command line code example
Example 1: canging branch in git
$ git checkout <existing_branch>
$ git checkout -b <new_branch>
Example 2: git command to create a branch from another branch
$ git checkout -b myfeature dev
$ git checkout <existing_branch>
$ git checkout -b <new_branch>
$ git checkout -b myfeature dev