Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 584 Bytes

checkout-the-previous-branch.md

File metadata and controls

24 lines (17 loc) · 584 Bytes
title category date topics
Checkout the previous branch
Tip
2021-03-07 09:25:00 +7
Git

It's common that we have multiple branches in the same Git repository. Each branch is used to fix a given bug, or implements a new feature.

Switching between branches is one of popular tasks in our daily work:

$ git checkout <target-branch-name>

Without specifying the branch name, we can quickly checkout the previous branch with the following command:

$ git checkout -

See also