HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

dvc diff — Show changes in DVC tracked file and directories. More information: <https://doc.dvc.org/command-ref

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandshowclifiledvc diffdvcchangestracked

Problem

How to use the dvc diff command: Show changes in DVC tracked file and directories. More information: <https://doc.dvc.org/command-reference/diff>.

Solution

dvc diff — Show changes in DVC tracked file and directories. More information: <https://doc.dvc.org/command-reference/diff>.

Compare DVC tracked files from different Git commits, tags, and branches w.r.t the current workspace:
dvc diff {{commit_hash/tag/branch}}


Compare the changes in DVC tracked files from 1 Git commit to another:
dvc diff {{revision1}} {{revision2}}


Compare DVC tracked files, along with their latest hash:
dvc diff --show-hash {{commit}}


Compare DVC tracked files, displaying the output as JSON:
dvc diff --show-json --show-hash {{commit}}


Compare DVC tracked files, displaying the output as Markdown:
dvc diff --show-md --show-hash {{commit}}

Code Snippets

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

dvc diff {{commit_hash/tag/branch}}

Compare the changes in DVC tracked files from 1 Git commit to another

dvc diff {{revision1}} {{revision2}}

Compare DVC tracked files, along with their latest hash

dvc diff --show-hash {{commit}}

Compare DVC tracked files, displaying the output as JSON

dvc diff --show-json --show-hash {{commit}}

Compare DVC tracked files, displaying the output as Markdown

dvc diff --show-md --show-hash {{commit}}

Context

tldr-pages: common/dvc diff

Revisions (0)

No revisions yet.