mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 20:47:53 +00:00
Update cheatsheets
This commit is contained in:
29
dvc-diff
Normal file
29
dvc-diff
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 {{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}}`
|
||||
Reference in New Issue
Block a user