Managing Tags
In Git, a tag is a named reference to a specific commit in the project's history.
In Git, a tag is a named reference to a specific commit in the project's history.
- Creating tags: Use
git tag [name] [commit-hash]to create a new tag. You can also usegit tag -a [name] -m "[message]" [commit-hash]for annotated tags. - Listing tags: Run
git tagto display all existing tags. - Deleting tags: Remove an existing tag with
git tag -d [tag-name].
Tags can be used for marking releases, milestones, or other significant events in a project's history.
Free Resources
official: