git cancel switch with problem code example
Example 1: git switch branch
git switch <branch_name>
git checkout <branch_name>
Example 2: sitch a branch command line
$ git switch <existing_branch>
$ git switch -c <non_existing_branch>
git switch <branch_name>
git checkout <branch_name>
$ git switch <existing_branch>
$ git switch -c <non_existing_branch>