Beginner Git Tutorial
The checkout command tells Git which branch or commit you want your changes applied. Git checkout helps you apply changes to the right branch, and it can also be great for reviewing old commits.
Watch this beginner Git tutorial video to understand what Git checkout is and how to use this action. See step-by-step how to Git checkout a branch, including how to checkout a remote branch, how to checkout a commit, and how to checkout a tag. Plus, you will understand what it means to enter Git detached HEAD state.
You will see an example of how to use the Git checkout command with branches, commits, and tags in the cross-platform GitKraken Git client and the command line.