-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DVC file -> .dvc file (2nd chunk) reopen (#1408)
* term: DVC-file -> .dvc file from Utkarsh work (2nd chunk) per #1372 (review) * 2nd chunk DVC-file -> .dvc file * Added links to first occurences of .dvc files in /basic-concepts/ * Formatting changes * Update content/docs/user-guide/basic-concepts/dvc-project.md * Update content/docs/user-guide/basic-concepts/external-dependency.md * Review changes - I * Update content/docs/command-reference/pull.md Co-authored-by: Jorge Orpinel <[email protected]> * Review changes - II * Update content/docs/command-reference/pull.md * Update content/docs/command-reference/pull.md * Update content/docs/command-reference/pull.md * Update content/docs/command-reference/pull.md * Update content/docs/command-reference/remove.md * update content/docs/command-reference/pull.md push.md remove.md * update content/docs/command-reference/fetch.md status.md * Update content/docs/command-reference/pull.md * Update content/docs/command-reference/pull.md * Update content/docs/command-reference/push.md * Update content/docs/command-reference/fetch.md * Update content/docs/command-reference/pull.md * Update content/docs/command-reference/push.md * Update content/docs/command-reference/remove.md * Update content/docs/command-reference/status.md * Update content/docs/command-reference/update.md * formatting content/docs/command-reference/pull.md * update content/docs/command-reference/status push fetch * Update content/docs/command-reference/status.md * update "content/docs/command-reference/fetch.md" * update content/docs/command-reference/import.md * update content/docs/command-reference/import-url.md * update content/docs/command-reference/list.md * Update content/docs/command-reference/status.md * update content/docs/command-reference/status.md * Update content/docs/command-reference/status.md * Update content/docs/command-reference/status.md * Update content/docs/command-reference/status.md Co-authored-by: Jorge Orpinel <[email protected]> Co-authored-by: Jorge Orpinel <[email protected]>
- Loading branch information
1 parent
64182e2
commit 55ba0a1
Showing
14 changed files
with
222 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
Download a file or directory tracked by DVC or by Git into the | ||
<abbr>workspace</abbr>. It also creates a | ||
[DVC-file](/doc/user-guide/dvc-file-format) with information about the data | ||
[`.dvc` file](/doc/user-guide/dvc-file-format) with information about the data | ||
source, which can later be used to [update](/doc/command-reference/update) the | ||
import. | ||
|
||
|
@@ -44,7 +44,8 @@ The `path` argument is used to specify the location of the target to be | |
downloaded within the source repository at `url`. `path` can specify any file or | ||
directory in the source repo, including those tracked by DVC, or by Git. Note | ||
that DVC-tracked targets should be found in a | ||
[DVC-file](/doc/user-guide/dvc-file-format) of the project. | ||
[`dvc.yaml`](/doc/user-guide/dvc-file-format) or | ||
[`.dvc`](/doc/user-guide/dvc-file-format) file of the project. | ||
|
||
⚠️ The project should have a default | ||
[DVC remote](/doc/command-reference/remote), containing the actual data for this | ||
|
@@ -55,15 +56,16 @@ command to work. | |
After running this command successfully, the imported data is placed in the | ||
current working directory (unless `-o` is used) with its original file name e.g. | ||
`data.txt`. An _import stage_ (DVC-file) is also created in the same location, | ||
extending the name of the imported data e.g. `data.txt.dvc` – similar to having | ||
used `dvc run` to generate the data as a stage <abbr>output</abbr>. | ||
`data.txt`. An _import stage_ (`.dvc` file) is also created in the same | ||
location, extending the name of the imported data e.g. `data.txt.dvc` – similar | ||
to having used `dvc run` to generate the data as a stage <abbr>output</abbr>. | ||
|
||
DVC-files support references to data in an external DVC repository (hosted on a | ||
Git server). In such a DVC-file, the `deps` field specifies the remote `url` and | ||
data `path`, and the `outs` field contains the corresponding local path in the | ||
<abbr>workspace</abbr>. It records enough metadata about the imported data to | ||
enable DVC efficiently determining whether the local copy is out of date. | ||
`.dvc` files support references to data in an external DVC repository (hosted on | ||
a Git server). In such a `.dvc` file, the `deps` field specifies the remote | ||
`url` and data `path`, and the `outs` field contains the corresponding local | ||
path in the <abbr>workspace</abbr>. It records enough metadata about the | ||
imported data to enable DVC efficiently determining whether the local copy is | ||
out of date. | ||
|
||
To actually | ||
[track the data](https://dvc.org/doc/tutorials/get-started/data-versioning), | ||
|
@@ -113,8 +115,8 @@ Importing 'data/data.xml ([email protected]: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)) with a link to the data source (as | ||
explained in the description above). (This import stage can later be used to | ||
([`.dvc` file](/doc/user-guide/dvc-file-format)) with a link to the data source | ||
(as explained in the description above). (This import stage can later be used to | ||
[update](/doc/command-reference/update) the import.) Check `data.xml.dvc`: | ||
|
||
```yaml | ||
|
@@ -153,7 +155,7 @@ Importing | |
``` | ||
|
||
When using this option, the import stage | ||
([DVC-file](/doc/user-guide/dvc-file-format)) will also have a `rev` subfield | ||
([`.dvc` file](/doc/user-guide/dvc-file-format)) will also have a `rev` subfield | ||
under `repo`: | ||
|
||
```yaml | ||
|
@@ -167,7 +169,7 @@ deps: | |
|
||
If `rev` is a Git branch or tag (where the underlying commit changes), the data | ||
source may have updates at a later time. To bring it up to date if so (and | ||
update `rev_lock` in the DVC-file), simply use `dvc update <stage>.dvc`. If | ||
update `rev_lock` in the `.dvc` file), simply use `dvc update <stage>.dvc`. If | ||
`rev` is a specific commit hash (does not change), `dvc update` without options | ||
will not have an effect on the import stage. You may force-update it to a | ||
different commit with `dvc update --rev`: | ||
|
@@ -185,7 +187,7 @@ If you take a look at our | |
[dataset registry](https://github.com/iterative/dataset-registry) | ||
<abbr>project</abbr>, you'll see that it's organized into different directories | ||
such as `tutorial/ver` and `use-cases/`, and these contain | ||
[DVC-files](/doc/user-guide/dvc-file-format) that track different datasets. | ||
[`.dvc` files](/doc/user-guide/dvc-file-format) that track different datasets. | ||
Given this simple structure, its data files can be easily shared among several | ||
other projects using `dvc get` and `dvc import`. For example: | ||
|
||
|
@@ -206,7 +208,7 @@ $ dvc import [email protected]:iterative/dataset-registry.git \ | |
`dvc import` provides a better way to incorporate data files tracked in external | ||
<abbr>DVC repositories</abbr> because it saves the connection between the | ||
current project and the source repo. This means that enough information is | ||
recorded in an import stage (DVC-file) in order to | ||
recorded in an import stage (`.dvc` file) in order to | ||
[reproduce](/doc/command-reference/repro) downloading of this same data version | ||
in the future, where and when needed. This is achieved with the `repo` field, | ||
for example (matching the import command above): | ||
|
@@ -245,7 +247,7 @@ Importing ... | |
> Note that Git-tracked files can be imported from DVC repos as well. | ||
|
||
The file is imported, and along with it, an import stage | ||
([DVC-file](/doc/user-guide/dvc-file-format)) file is created. Check | ||
([`.dvc` file](/doc/user-guide/dvc-file-format)) file is created. Check | ||
`it-standards.csv.dvc`: | ||
|
||
```yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.