Files
30-seconds-of-code/snippets/switch-to-last-branch.md
2022-05-04 19:36:40 +03:00

421 B

title, tags, expertise, author, cover, firstSeen, lastUpdated
title tags expertise author cover firstSeen lastUpdated
Return to previous branch branch beginner maciv blog_images/beach-riders.jpg 2021-04-04T14:13:31+03:00 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`