LinuxCommandLibrary

dvc-diff

Show changes in DVC tracked file and directories.

TLDR

Compare DVC tracked files from different Git commits, tags, and branches w.r.t the current workspace

$ dvc diff [commit_hash/tag/branch]
copy


Compare the changes in DVC tracked files from 1 Git commit to another
$ dvc diff [revision_b] [revision_a]
copy


Compare DVC tracked files, along with their latest hash
$ dvc diff --show-hash [commit]
copy


Compare DVC tracked files, displaying the output as JSON
$ dvc diff --show-json --show-hash [commit]
copy


Compare DVC tracked files, displaying the output as Markdown
$ dvc diff --show-md --show-hash [commit]
copy

Copied to clipboard