Skip to main content
Tag actions allow you to manage Git tags directly from the graph view. You can create lightweight or annotated tags, delete existing tags, and push tags to remote repositories.

Add Tag

Create a new Git tag on a specific commit. Command: addTag

Parameters

ParameterTypeRequiredDescription
repostringYesPath to the Git repository
commitHashstringYesHash of the commit to tag
tagNamestringYesName for the new tag
lightweightbooleanYesIf true, creates a lightweight tag; if false, creates an annotated tag
messagestringYesMessage for the annotated tag (used only when lightweight is false)

Implementation

  • Lightweight tag: git tag <tagName> <commitHash>
  • Annotated tag: git tag -a <tagName> -m <message> <commitHash>

Response

Returns a status indicating success (null) or an error message if the operation failed.
Annotated tags are recommended for releases as they store additional metadata including the tagger name, email, date, and message.

Delete Tag

Delete a tag from the local repository. Command: deleteTag

Parameters

ParameterTypeRequiredDescription
repostringYesPath to the Git repository
tagNamestringYesName of the tag to delete

Implementation

Executes: git tag -d <tagName>

Response

Returns a status indicating success (null) or an error message if the operation failed.
This only deletes the tag locally. To remove a tag from the remote repository, you need to separately push the deletion.

Push Tag

Push a tag to the remote repository. Command: pushTag

Parameters

ParameterTypeRequiredDescription
repostringYesPath to the Git repository
tagNamestringYesName of the tag to push

Implementation

Executes: git push origin <tagName>

Response

Returns a status indicating success (null) or an error message if the operation failed.
Tags must be explicitly pushed to remote repositories. They are not included in regular git push operations.

Build docs developers (and LLMs) love