Sobes.tech
Junior — Middle

Have you used tags in the Git version control system?

sobes.tech AI

Answer from AI

In Git, tags are used to create markers on specific commits, usually to denote releases or important versions of a project. There are two main types of tags:

  • Annotated tags — contain additional information (author, date, message), stored as full objects in the repository.
  • Lightweight tags — simply point to a specific commit without additional information.

Example of creating an annotated tag:

git tag -a v1.0 -m "Release version 1.0"

To push a tag to a remote repository:

git push origin v1.0

Tags are useful for marking stable versions and easily switching between them.