Răsfoiți Sursa

DVC: add page including sub-commands destroy, diff and fetch

Puneetha Pai 4 ani în urmă
părinte
comite
ca9b1f104e
3 a modificat fișierele cu 60 adăugiri și 0 ștergeri
  1. 12 0
      pages/common/dvc-destroy.md
  2. 24 0
      pages/common/dvc-diff.md
  3. 24 0
      pages/common/dvc-fetch.md

+ 12 - 0
pages/common/dvc-destroy.md

@@ -0,0 +1,12 @@
+# dvc destroy
+
+> Remove all DVC files and directories from a DVC project.
+> More information: <https://dvc.org/doc/command-reference/destroy>.
+
+- Destroy:
+
+`dvc destroy`
+
+- Force Destroy:
+
+`dvc destroy --force`

+ 24 - 0
pages/common/dvc-diff.md

@@ -0,0 +1,24 @@
+# dvc diff
+
+> Show changes in DVC tracked file and directories added/deleted/modified
+> 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}}`

+ 24 - 0
pages/common/dvc-fetch.md

@@ -0,0 +1,24 @@
+# dvc fetch
+
+> Download DVC tracked files and directories from a remote repository.
+> More information: <https://dvc.org/doc/command-reference/fetch>.
+
+- Fetch the latest changes from the default remote upstream repository (if set):
+
+`dvc fetch`
+
+- Fetch changes from a specific remote upstream repository:
+
+`dvc fetch --remote {{remote_name}}`
+
+- Fetch the latest changes for a specific target/s:
+
+`dvc fetch {{target/s}}`
+
+- Fetch changes for all branch and tags:
+
+`dvc fetch --all-branches --all-tags`
+
+- Fetch changes for all commits:
+
+`dvc fetch --all-commits`