瀏覽代碼

DVC: add page including sub-commands freeze, unfreeze and gc

Puneetha Pai 4 年之前
父節點
當前提交
c96d68ed62
共有 3 個文件被更改,包括 46 次插入0 次删除
  1. 13 0
      pages/common/dvc-freeze.md
  2. 20 0
      pages/common/dvc-gc.md
  3. 13 0
      pages/common/dvc-unfreeze.md

+ 13 - 0
pages/common/dvc-freeze.md

@@ -0,0 +1,13 @@
+# dvc freeze
+
+> Freeze stages in DVC pipeline.
+> This makes DVC to stop tracking changes in stage dependencies and re-execution untill unfreeze.
+> More information: <https://dvc.org/doc/command-reference/freeze>.
+
+- Freeze given stage/s:
+
+`dvc freeze {{stage_name/s}}`
+
+- Unfreeze given stage/s:
+
+`dvc unfreeze {{stage_name/s}}`

+ 20 - 0
pages/common/dvc-gc.md

@@ -0,0 +1,20 @@
+# dvc gc
+
+> Remove unused files and directories from cache or remote storage.
+> More information: <https://dvc.org/doc/command-reference/gc>.
+
+- Garbage collect from cache, keeping only version referenced by current workspace:
+
+`dvc gc --workspace`
+
+- Garbage collect from cache, keeping only version referenced by branch/tags/all_commits:
+
+`dvc gc --all-branches --all-tags --all-commits`
+
+- Garbage collect from cache, including default cloud remote storage (if set):
+
+`dvc gc --all-commits --cloud`
+
+- Garbage collect from cache, including specific cloud remote storage:
+
+`dvc gc --all-commits --cloud -r {{remote_name}}`

+ 13 - 0
pages/common/dvc-unfreeze.md

@@ -0,0 +1,13 @@
+# dvc unfreeze
+
+> Unfreeze stages in DVC pipeline.
+> This makes DVC to start tracking changes in stage dependencies again after they were frozen.
+> More information: <https://dvc.org/doc/command-reference/unfreeze>.
+
+- Unfreeze given stage/s:
+
+`dvc unfreeze {{stage_name/s}}`
+
+- Freeze given stage/s:
+
+`dvc freeze {{stage_name/s}}`