Checkout previous branch

Published: June 25, 2021

Previous branch:

sh
git switch -

N number of last visited branch:

sh
git switch @{-2}