From e6858cc8b8939f9a1a15d39d2b8b4cd1634bf3fd Mon Sep 17 00:00:00 2001 From: Jorge Orpinel Date: Sun, 3 Jan 2021 17:41:04 -0600 Subject: [PATCH] cmd: review push and pull examples --- content/docs/command-reference/commit.md | 2 +- content/docs/command-reference/config.md | 3 ++- content/docs/command-reference/install.md | 2 +- content/docs/command-reference/pull.md | 3 ++- content/docs/command-reference/push.md | 7 +++---- content/docs/use-cases/sharing-data-and-model-files.md | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/content/docs/command-reference/commit.md b/content/docs/command-reference/commit.md index 5a935eeb07..48f1fd6c57 100644 --- a/content/docs/command-reference/commit.md +++ b/content/docs/command-reference/commit.md @@ -122,7 +122,7 @@ $ pip install -r src/requirements.txt Download the precomputed data using: ```dvc -$ dvc pull --all-branches --all-tags +$ dvc pull -aT ``` diff --git a/content/docs/command-reference/config.md b/content/docs/command-reference/config.md index ce3fc46bc5..8ef1c166a9 100644 --- a/content/docs/command-reference/config.md +++ b/content/docs/command-reference/config.md @@ -280,7 +280,8 @@ or to a relative path (resolved from `./.dvc/`): ```dvc $ dvc config cache.dir ../../mycache -$ dvc pull -q +$ dvc pull + $ ls ../mycache 2f/ ``` diff --git a/content/docs/command-reference/install.md b/content/docs/command-reference/install.md index 95c2d5b38d..9043b14d6e 100644 --- a/content/docs/command-reference/install.md +++ b/content/docs/command-reference/install.md @@ -160,7 +160,7 @@ $ pip install -r src/requirements.txt Download the precomputed data using: ```dvc -$ dvc pull --all-branches --all-tags +$ dvc pull -aT ``` diff --git a/content/docs/command-reference/pull.md b/content/docs/command-reference/pull.md index e2ec3b0115..42d46f905b 100644 --- a/content/docs/command-reference/pull.md +++ b/content/docs/command-reference/pull.md @@ -208,7 +208,8 @@ to retrieve part of the data? ```dvc $ dvc pull --with-deps featurize -... Use the partial update, then pull the remaining data: +# Use the partial update... +# Then pull the remaining data: $ dvc pull Everything is up to date. diff --git a/content/docs/command-reference/push.md b/content/docs/command-reference/push.md index df3ba160c0..6694a103c6 100644 --- a/content/docs/command-reference/push.md +++ b/content/docs/command-reference/push.md @@ -134,7 +134,7 @@ the default remote: $ dvc push ``` -Push outputs of a specific `.dvc` file only: +Push files related to a specific `.dvc` file only: ```dvc $ dvc push data.zip.dvc @@ -165,12 +165,11 @@ want to upload part of the data? ```dvc $ dvc push --with-deps test-posts -... Do some work based on the partial update +# Do some work based on the partial update... +# Then push the rest of the data: $ dvc push --with-deps matrix-train -... Push the rest of the data - $ dvc status --cloud Cache and remote 'r1' are in sync. ``` diff --git a/content/docs/use-cases/sharing-data-and-model-files.md b/content/docs/use-cases/sharing-data-and-model-files.md index e2930f470b..f5215ac283 100644 --- a/content/docs/use-cases/sharing-data-and-model-files.md +++ b/content/docs/use-cases/sharing-data-and-model-files.md @@ -67,7 +67,7 @@ with the `dvc push` command: $ dvc push ``` -Code and [DVC-files](/doc/user-guide/dvc-files-and-directories) can be safely +Code and [DVC files](/doc/user-guide/dvc-files-and-directories) can be safely committed and pushed with Git. ## Download code