Anchors and aliases let you identify an item with an anchor in a YAML document, and then refer to that item with an alias later in the same document. Anchors are identified by an & character, and aliases by an * character.
Example - the YAML:
- &flag Apple
- Beachball
- Cartoon
- Duckface
- *flag
will become:
- Apple
- Beachball
- Cartoon
- Duckface
- Apple