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