REPOMATIC-GIT-TAG(1) REPOMATIC-GIT-TAG(1)

repomatic git-tag - Create and push a Git tag

repomatic git-tag [OPTIONS]

Create and optionally push a Git tag.

This command is idempotent: if the tag already exists and --skip-existing is used, it exits successfully without making changes. This allows safe re-runs of workflows interrupted after tag creation.

Tag name to create (e.g., v1.2.3).
[required]
Commit to tag. Defaults to HEAD.
Push the tag to remote after creation.
Skip silently if tag exists, or fail with an error.
Output file for created=true/false (e.g., $GITHUB_OUTPUT).
Show this message and exit.

Tag name to create (e.g., v1.2.3).
Commit to tag. Defaults to HEAD.
Push the tag to remote after creation.
Skip silently if tag exists, or fail with an error.
Output file for created=true/false (e.g., $GITHUB_OUTPUT).
Show this message and exit.

0
Success.
1
A runtime error, or an aborted prompt (Ctrl-C, a declined confirmation).
2
A usage error: unknown option, invalid value, missing operand, or an unparsable configuration file.

Create and push a tag

repomatic git\-tag \-\-tag v1.2.3

Tag a specific commit

repomatic git\-tag \-\-tag v1.2.3 \-\-commit abc123def

Create tag without pushing

repomatic git\-tag \-\-tag v1.2.3 \-\-no\-push

Fail if tag exists

repomatic git\-tag \-\-tag v1.2.3 \-\-error\-existing

Output result for GitHub Actions

repomatic git\-tag \-\-tag v1.2.3 \-\-output "$GITHUB_OUTPUT"

Kevin Deldycke

2026-09-14 7.15.1.dev0