Edit on GitHub

history

Show a journal of registry operations.

Synopsis

usage: gto history [-r <text>] [-a] [-A] [--json] [--plain]
                   [--asc] [-h]
                   [name]

arguments:
  [name]           Artifact name to show. If empty, show all.

Description

This command prints a journal of the events that happened to an artifact. This allows you to audit the changes.

$ gto history churn -r https://github.com/iterative/example-gto
╒═════════════════════╀════════════╀══════════════╀═══════════╀═════════╀══════════╀═════════════════╕
β”‚ timestamp           β”‚ artifact   β”‚ event        β”‚ version   β”‚ stage   β”‚ commit   β”‚ ref             β”‚
β•žβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•ͺ════════════β•ͺ══════════════β•ͺ═══════════β•ͺ═════════β•ͺ══════════β•ͺ═════════════════║
β”‚ 2022-11-09 13:40:33 β”‚ churn      β”‚ assignment   β”‚ v3.1.1    β”‚ dev     β”‚ 2f2a8de  β”‚ churn#dev#5     β”‚
β”‚ 2022-11-09 13:40:33 β”‚ churn      β”‚ registration β”‚ v3.1.1    β”‚ -       β”‚ 2f2a8de  β”‚ [email protected]    β”‚
β”‚ 2022-11-08 09:53:53 β”‚ churn      β”‚ commit       β”‚ v3.1.1    β”‚ -       β”‚ 2f2a8de  β”‚ 2f2a8de         β”‚
β”‚ 2022-11-07 06:07:13 β”‚ churn      β”‚ assignment   β”‚ v3.1.0    β”‚ dev     β”‚ 064f173  β”‚ churn#dev#4     β”‚
β”‚ 2022-11-06 02:20:33 β”‚ churn      β”‚ assignment   β”‚ v3.0.0    β”‚ prod    β”‚ ddae695  β”‚ churn#prod#3    β”‚
β”‚ 2022-11-04 22:33:53 β”‚ churn      β”‚ assignment   β”‚ v3.1.0    β”‚ staging β”‚ 064f173  β”‚ churn#staging#2 β”‚
β”‚ 2022-11-03 18:47:13 β”‚ churn      β”‚ assignment   β”‚ v3.0.0    β”‚ dev     β”‚ ddae695  β”‚ churn#dev#1     β”‚
β”‚ 2022-11-02 15:00:33 β”‚ churn      β”‚ registration β”‚ v3.1.0    β”‚ -       β”‚ 064f173  β”‚ [email protected]    β”‚
β”‚ 2022-11-01 11:13:53 β”‚ churn      β”‚ commit       β”‚ v3.1.0    β”‚ -       β”‚ 064f173  β”‚ 064f173         β”‚
β”‚ 2022-10-28 23:53:53 β”‚ churn      β”‚ registration β”‚ v3.0.0    β”‚ -       β”‚ ddae695  β”‚ [email protected]    β”‚
β”‚ 2022-10-27 20:07:13 β”‚ churn      β”‚ commit       β”‚ v3.0.0    β”‚ -       β”‚ ddae695  β”‚ ddae695         β”‚
β•˜β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•›

Use --all-branches and --all-commits to read more than just HEAD.

Options

  • -r <text>, --repo <text> - Local or remote repository [default: .]
  • -a, --all-branches - Read heads from all branches
  • -A, --all-commits - Read all commits
  • --json - Print output in json format
  • --plain - Print table in grep-able format
  • --ascending, --asc - Show new first
  • -h, --help - Show this message and exit.
Content

πŸ› Found an issue? Let us know! Or fix it:

Edit on GitHub

❓ Have a question? Join our chat, we will help you:

Discord Chat