Git Tags
Task
Place two permanent markers in the history and finish on an old commit.
Requirements
- Create the tag
v1on commitC1. - Create the tag
v0on the root commitC0. - At the end,
HEADmust point directly toC0in a detached state. - The tag names must be exactly
v0andv1.
Expected result
The tags will stay attached to C0 and C1, the existing branches will not change, and HEAD will end up on C0.
What you will learn
After completing the task, you will be able to:
- create tags on specific commits;
- tell a fixed tag apart from a moving branch;
- understand a detached
HEADwhen moving to a point in history.
Goal
local