Files
30-seconds-of-code/git/snippets/switch-to-last-branch.md
2023-05-01 22:28:09 +03:00

351 B

title, type, tags, cover, dateModified
title type tags cover dateModified
Return to previous branch snippet
branch
beach-riders 2021-04-13T21:10:59+03:00

Switches back to the last branch.

  • Use git checkout - to switch back to the previous branch.
git checkout -
git checkout patch-1
git checkout master
git checkout - # Switches to `patch-1`