Skip to main content

vers repo tag create

Create a tag inside a repo that points to a specific commit. Tags are movable named pointers, think latest, v1.2.0, staging, known-good.

Synopsis

Description

Creates a new tag inside the given repository pointing at the commit. The tag is unique per-repo; you can’t have two tags with the same name in the same repo (but my-app:latest and other-app:latest coexist fine). Tag names: 1-128 characters, letters, digits, hyphens, underscores, dots.
The commit must be owned by your org. You cannot tag another org’s commit, even if you can see it through a public repo. The way to “import” someone else’s commit is vers repo fork, which re-commits it under your ownership.

Options

Examples

Tag the result of a commit

Tag with a description

Chain from a previous tag lookup

Error Cases

Repository not found

Commit not found or not yours

Solution for “forbidden”: you’re trying to tag someone else’s commit. Use vers repo fork instead.

Tag already exists

Solution: use vers repo tag update to move the existing tag to a new commit, or delete it first with vers repo tag delete.

Invalid tag name

See Also