AZ-400: Designing and Implementing Microsoft DevOps Solutions

Configuring and Managing Repositories

Organizing Your Repository Using Git Tags in Azure Repos

Git tags provide fixed points in your project’s history—ideal for marking release versions, major changes, or key milestones. Because Azure Repos is built on Git, you can leverage all standard Git commands to create, list, and push tags, or manage them directly via the Azure DevOps web interface.

What Are Git Tags?

Note

Git tags come in two flavors:

  • Lightweight tags: Simple pointers to a commit (no additional metadata).
  • Annotated tags: Store extra information such as author, date, and a message—ideal for official releases.

Why Use Git Tags?

  • Release Management: Mark stable builds for deployment or distribution.
  • Version Tracking: Easily reference past states of your codebase.
  • Collaboration: Communicate release points to team members or CI/CD pipelines.

Common Git Tag Commands

CommandDescription
git tag v1.0.0Create a lightweight tag
git tag -a v1.0.0 -m "Release version 1.0.0"Create an annotated tag
git tagList all local tags
git push origin v1.0.0Push a specific tag to the remote
git push origin --tagsPush all local tags to the remote

Managing Tags in the Azure DevOps UI

Azure DevOps also offers a visual interface to streamline tag management:

The image shows a screenshot of the Azure Repos interface, highlighting the "Tags" section with a list of tags and their details. It includes options for creating new tags and searching existing ones.

From this Tags page, you can:

  • Create new tags without using the CLI
  • Search and filter existing tags
  • View tag details at a glance

Next Steps

Ready to learn more about release workflows? Explore how Git tags integrate with GitHub Releases to publish release notes and binaries.

Watch Video

Watch video content

Previous
Configure Git tags to organize the source control repository