Here’s a shortcut to switch to the last branch in git:

git checkout -