From ca15be14c69cd15cf4324a09fa21783ad5555229 Mon Sep 17 00:00:00 2001 From: Jorge Orpinel Date: Mon, 18 Nov 2019 13:42:05 -0600 Subject: [PATCH] cmd ref: add introductory sentence in re-import example per https://github.com/iterative/dvc.org/pull/800#discussion_r347558150 --- static/docs/command-reference/import.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/docs/command-reference/import.md b/static/docs/command-reference/import.md index 0c537e892d..fa4f895c5f 100644 --- a/static/docs/command-reference/import.md +++ b/static/docs/command-reference/import.md @@ -126,6 +126,9 @@ under `repo` are used to save the origin and version of the dependency. ## Example: fixed revisions & re-importing +To import a specific revision of a data artifact, we may use the +`--rev` option: + ```dvc $ dvc import --rev cats-dogs-v1 \ git@github.com:iterative/dataset-registry.git \ @@ -135,7 +138,7 @@ Importing -> 'cats-dogs' ``` -When the `--rev` option is used, the import stage +When using this option, the import stage ([DVC-file](/doc/user-guide/dvc-file-format)) will also have a `rev` subfield under `repo`: