You can quickly switch to the previous branch using
git checkout -