Search
Close this search box.

What is Git Checkout?

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.

Additional Resources

Table of Contents

Make Git Easier, Safer &
More Powerful

with GitKraken

Visual Studio Code is required to install GitLens.

Don’t have Visual Studio Code? Get it now.

Team Collaboration Services

Secure cloud-backed services that span across all products in the DevEx platform to keep your workflows connected across projects, repos, and team members
Launchpad – All your PRs, issues, & tasks in one spot to kick off a focused, unblocked day. Code Suggest – Real code suggestions anywhere in your project, as simple as in Google Docs. Cloud Patches – Speed up PR reviews by enabling early collaboration on work-in-progress. Workspaces – Group & sync repos to simplify multi-repo actions, & get new devs coding faster. DORA Insights – Data-driven code insights to track & improve development velocity. Security & Admin – Easily set up SSO, manage access, & streamline IdP integrations.
winget install gitkraken.cli