Documentation Index
Fetch the complete documentation index at: https://docs.vers.sh/llms.txt
Use this file to discover all available pages before exploring further.
vers head prints the VM ID that HEAD currently points to. It’s the scripting primitive behind the default target for most other commands — when you run vers status or vers commit without an argument, HEAD is what they resolve to.
Synopsis
Examples
Use HEAD in a script
Chain with other commands
How HEAD works
HEAD is a per-project pointer stored in.vers/HEAD. It moves automatically when you:
- run
vers run(points at the new root VM) - run
vers branch(points at the new branch) - run
vers checkout <vm>(explicit move) - delete the HEAD VM (cleared)
Common Patterns
Check whether you’re in a Vers project
Use HEAD in your shell prompt
Pipe into any VM-taking command
See also
- vers checkout — move HEAD to a different VM
- vers status — HEAD state plus VM list
- vers alias — human-readable names for VM IDs