Skip to content

Commit

Permalink
Get rid of links to external dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dmpetrov committed Nov 24, 2019
1 parent 054e87a commit 7bd11d4
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions static/docs/command-reference/import.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# import

Download or copy file or directory from any <abbr>DVC project</abbr> in a Git
repository (e.g. hosted on GitHub) into the <abbr>workspace</abbr>, and track
changes in this [external dependency](/doc/user-guide/external-dependencies).
Creates [DVC-files](/doc/user-guide/dvc-file-format).
Import file or directory from any <abbr>DVC project</abbr> in a Git
repository (e.g. hosted on GitHub). The imported files will be copied
or downloaded into the <abbr>workspace</abbr> while DVC keeps information
about the source in a created [DVC-files](/doc/user-guide/dvc-file-format).
Information about the source is a link to a imported repository and it is
used during imported file [update](/doc/user-guide/external-dependencies).

> See also `dvc get`, that corresponds to the first step this command performs
> (just download the data).
Expand Down Expand Up @@ -100,9 +102,10 @@ Importing 'data/data.xml (git@github.com:iterative/example-get-started)'

In contrast with `dvc get`, this command doesn't just download the data file,
but it also creates an import stage
([DVC-file](/doc/user-guide/dvc-file-format)) to register this data as an
[external dependency](/doc/user-guide/external-dependencies) (using the `repo`
field). Check `data.xml.dvc`:
([DVC-file](/doc/user-guide/dvc-file-format)) with a link to this data source.
This DVC-file with the link is used during imported
file [update](/doc/user-guide/external-dependencies).
Check `data.xml.dvc`:

```yaml
md5: 7de90e7de7b432ad972095bc1f2ec0f8
Expand Down

0 comments on commit 7bd11d4

Please sign in to comment.