Introduction
Tags in Git mark specific points in history as important. Lightweight tags are simple bookmarks, while annotated tags store extra information like author and message.
When you want to quickly mark a commit without extra details for personal reference.
When you want to create a release version with author info, date, and a message.
When you need to share a tag with others that includes metadata for clarity.
When you want to sign a tag cryptographically for security.
When you want to list tags and see detailed info about them.