Promptles
Git & Collaboration

HEAD

intermediate

Definition

A bookmark that points to the version of the project you're currently looking at. Wherever HEAD is, that's the version of the files sitting on your computer. When you switch branches or jump to an older snapshot, HEAD moves with you.

In the wild

You're working on the 'new-checkout' branch and HEAD is sitting on its latest snapshot. You hop over to the main version of the project. HEAD moves with you, and the files on your computer change to match the main version.

More from Git & Collaboration