1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 18:24:56 +02:00
tldr/pages/common/dvc-diff.md
Puneetha Pai f45f4dafcb dvc diff: Apply suggestions from code review
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2020-08-21 23:53:25 +01:00

24 lines
703 B
Markdown

# dvc diff
> Show changes in DVC tracked file and directories.
> More information: <https://dvc.org/doc/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 {{revision_b}} {{revision_a}}`
- 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}}`