Skip to content

Commit

Permalink
how to list non-gto tags (#5258)
Browse files Browse the repository at this point in the history
* how to list non-gto tags

* Restyled by prettier (#5259)

Co-authored-by: Restyled.io <[email protected]>

---------

Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com>
Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
3 people authored Jun 12, 2024
1 parent 25b8edc commit bd6ffaf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions content/docs/gto/user-guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,18 @@ jobs:
</tab>
</toggle>
## Listing non-GTO Git tags
Sometimes your repository contains both model management tags generated by GTO
as well as other Git tags which are created manually. If you have a lot of
models in your repository it can be helpful to filter out GTO tags and only list
manually created Git tags. You can do that using the following code snippet
which uses standard unix commands together with `git` and `gto`.

```cli
comm -2 -3 <(sort <<< $(git tag)) <(sort <<< $(gto history --json | jq -r '.[].ref'))
```

## Configuring GTO

To configure GTO, use file `.gto` in the root of your repo:
Expand Down

0 comments on commit bd6ffaf

Please sign in to comment.