A Visual Git Reference - Mark Lodato's blog
A fourth case is committing with a detached HEAD, as explained later. Checkout The checkout command is used to copy files from the history (or stage) to the working directory, and to optionally switch branches. When a filename (and/or -p) is given, git co...