Which branch does git switch - take you to?
- The most recently created branch
- The previously checked-out branch
- The repository's default branch
- The upstream of the current branch
Like
Play Git ▸
cd -, the - shorthand means the branch you were on before the last switch (@{-1}).