Mateusz Soltysik Blog

Mateusz Soltysik Blog

On tech, software engineering, live & more.

Git: Checkout Previous Branch

The simples way to checkout previous branch is to use following command:

git checkout -

The command is an equivalent to git checkout @{-1}.

Resources: documentation link.

Tags