switch and create new branch git code example
Example 1: git command to create a branch
//Create a New Branch
git checkout -b [name_of_your_new_branch]
//First Push
git push --set-upstream origin [name_of_your_new_branch]
Example 2: git switch branch
git switch <branch_name>
git checkout <branch_name>
Example 3: git command to create a branch from another branch
$ git checkout -b myfeature dev
Example 4: git change branch
$ git branch iss53
$ git checkout iss53