Create and Manage Tags

From the Git page's Refs view, you can create and manage a Git repository’s tags.

You must be a project owner or member to create and manage tags:

Action How To

Create a tag

  1. In the Git page's Refs view, select the repository from the Repositories drop-down list.

  2. Click Tags Tags.
  3. Click + Create Tag.

    The New Tags dialog box is displayed.

  4. Enter the tag name in the Name field.

    If you choose a name that's the same as a branch name in the Git repo, you'll see a warning. Although you're not strictly prohibited from using this name, doing so can cause confusion in places where the branch is referred to, like in build jobs. It's best to choose an original name.

  5. Click the Base selector and, from the list, choose the base revision.
  6. Click Create.

Rename a tag

  1. In the Tags Tags view, select the tag name to modify from the list.

  2. Click the Actions menu Actions, to the right, and select Rename.

    The Rename Tag dialog box is displayed.

  3. Enter the new tag name in the New Name field.

  4. Select the I want to rename the tag check box.
  5. Click Rename.

Compare a tag

  1. In the Tags Tags view, select the tag name to modify from the list.

  2. Click the Actions menu Actions, to the right, and select Compare.

    The Compare screen opens, comparing the selected tag with the default branch.

Delete a tag

  1. In the Tags Tags view, select the tag name to modify from the list.

  2. Click the Actions menu Actions, to the right, and select Delete.

    The Delete Tag dialog box is displayed

  3. Click the I want to delete the tag check box.

  4. Click Delete.