Label management

  • When releasing a release, we usually start with a label in the release library (tag), thus, the only version of the labeling moment is determined. Whenever you take the version of a label in the future, you take the historical version of that label moment. So, the label is also a snapshot of the repository.
  • Git’s tag is a snapshot of the repository, but it actually points to somethingcommitIs similar to a branch, right? But branches can be moved, labels cannot), so creating and deleting labels is instantaneous.
  • Git hascommitWhy introduce ittag?
  • “Please pack up the version from Last Monday,Commit number is 6 a5819e…”
  • “A jumble of numbers is hard to find!”
  • If there is another way:
  • “Please pack and release last Monday’s version as V1.2.”
  • “Ok, according toThe tag v1.2To find thecommitCan!”
  • So,tagIt’s just a meaningful name that’s easy to remember, and it’s related to somethingcommitTie them together.