Repositories

Tags

Open a repository's Tags tab to find a tagged version of its code. You need read access to the repository.

Each row shows the tag name, whether it is annotated, the commit it points at and who committed it when. Type in the search box to filter by name; pages hold up to 100 tags. A signed annotated tag shows Verified or Unverified.

Create a tag

With write access, create a lightweight tag at an existing commit without a clone:

sh
1cafe tag create v1.0.0 main

The second argument is a branch, a tag or a full commit hash; the tag points at that exact commit (an annotated tag's commit, not the tag itself). When a name is both a branch and a tag at different commits, the command refuses and asks you to spell it out as refs/heads/<name> or refs/tags/<name>. The hash of an annotated tag object is refused: pass its commit's hash or the tag name. An existing tag is never moved, and rulesets that restrict tag creation apply. Annotated tags are created with Git and pushed:

sh
1git tag -a v1.0.0 -m "Version 1.0.0"
2git push origin v1.0.0

Creating a release of a missing tag also creates the tag.

Delete a tag

With write access, delete a tag from its row and confirm, or run cafe tag delete <name> --yes. Rulesets can protect tags from deletion. Deletion activity (the history icon) shows the result of your recent deletions.

Download a tagged version

cafe repo archive tag v1.0.0 > v1.0.0.tar.gz downloads the tagged tree as a tar.gz archive.

Read as MarkdownGitCafe documentation
Documentation