Posted almost 6 years ago. Visible to the public.

Git - quickly switch to last branch

Like the cd - command git also has a shortcut to checkout the last branch. git checkout - switches to the last checked out branch.

Copy
% git checkout - Switched to branch 'foo' % git checkout - Switched to branch 'bar'

Owner of this card:

Avatar
jan0sch
Last edit:
almost 6 years ago
Posted by jan0sch to jan0sch's deck
This website uses cookies to improve usability and analyze traffic.
Accept or learn more