Git return to previous branch
When you want to return to the branch you were at before the current one, you can use:
git checkout -
or
git switch -
When you want to return to the branch you were at before the current one, you can use:
git checkout -
or
git switch -