Links: 106 Git Index
- Tags exist as anchors in the commit tree that designate certain spots.
- They are used permanently mark certain commits as milestones that you can then reference like a branch.
Tags are similar to branches, they only point to a specific commit but conceptually they are very different. Tags are meant to be permanent.
To change a tag you have to do a force push.
git tag v1 c1
- Because tags serve as such great "anchors" in the codebase, git has a command to describe where you are relative to the closest "anchor" (aka tag). And that command is called
Last updated: 2022-06-21