git switch brances code example
Example 1: git switch branch
git switch <branch_name>
git checkout <branch_name>
Example 2: git command to create a branch from another branch
$ git checkout -b myfeature dev
git switch <branch_name>
git checkout <branch_name>
$ git checkout -b myfeature dev