Edit on GitHub
check-ref
Find out the artifact version registered/assigned with ref.
Synopsis
usage: gto check-ref [-r <text>] [--json] [--name] [--version]
[--event] [--stage] [-h]
ref
arguments:
ref Git reference to analyze
Description
You can use gto check-ref
to interpret a Git tag:
$ gto check-ref -r build/example-gto churn#prod#3
โ
Stage "prod" was assigned to version "v3.0.0" of artifact "churn"
For machine-consumable format, use --json
flag or output specific pieces of
information with --name
, --version
, --stage
or --event
.