2020-07-23 13:34:38 +05:30
|
|
|
# dvc diff
|
|
|
|
|
2020-07-26 21:21:20 +05:30
|
|
|
> Show changes in DVC tracked file and directories added/deleted/modified.
|
2020-07-23 13:34:38 +05:30
|
|
|
> More information: <https://dvc.org/doc/command-reference/diff>.
|
|
|
|
|
|
|
|
- Compare DVC tracked file from different Git commit/tag/branch w.r.t current workspace:
|
|
|
|
|
|
|
|
`dvc diff {{commit_hash/tag/branch}}`
|
|
|
|
|
|
|
|
- Compare DVC tracked file in Git b_rev w.r.t a_rev:
|
|
|
|
|
|
|
|
`dvc diff b_rev a_rev`
|
|
|
|
|
|
|
|
- Compare DVC tracked file, along with their latest hash:
|
|
|
|
|
|
|
|
`dvc diff --show-hash {{commit}}`
|
|
|
|
|
|
|
|
- Compare DVC tracked file, get output in JSON format:
|
|
|
|
|
|
|
|
`dvc diff --show-json --show-hash {{commit}}`
|
|
|
|
|
|
|
|
- Compare DVC tracked file, get output in Markdown format:
|
|
|
|
|
|
|
|
`dvc diff --show-md --show-hash {{commit}}`
|