What's git checkout used for?

Switching to another commitCreating a new branchSwitching to an existing branchCommitting into a new branch

Awesome! We can use git checkout with a branch name to switch to a branch or with a hash code or tag to move the HEAD to another commit.

Drat! We can use git checkout with a branch name to switch to a branch or with a hash code or tag to move the HEAD to another commit.