iterative / gto

🏷️ Git Tag Ops. Turn your Git repository into Artifact Registry or Model Registry.
https://dvc.org/doc/gto
Apache License 2.0
142 stars 16 forks source link

`annotate` doesn't support specifying ref #305

Closed aguschin closed 1 year ago

aguschin commented 1 year ago

related to #25

Right now, annotate on remote repo can create a commit on top of default branch only:

$ gto annotate classifier \
        --repo $REPO \
        --path model.pkl \
        --description "Simple text classification model"
        --type model```

There should be a way to annotate in non-default branches, e.g.

$ gto annotate classifier \
        --repo $REPO \
        --branch try-large-dataset
        --path model.pkl \
        --description "Simple text classification model"
        --type model

Question: should we support creating a new branch with annotation out of existing ones? E.g.

$ gto annotate classifier \
        --repo $REPO \
                --rev try-large-dataset
        --branch new-branch
        --path model.pkl \
        --description "Simple text classification model"
        --type model