Skip to content

Commit

Permalink
Merge pull request #1608 from sahilbhosale63/DvcAddOther
Browse files Browse the repository at this point in the history
Review all dvc add examples throughout docs #1605
  • Loading branch information
jorgeorpinel authored Jul 22, 2020
2 parents 809ac15 + b2e4983 commit b4d6cc3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 12 deletions.
4 changes: 1 addition & 3 deletions content/docs/command-reference/move.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ The `dvc add` command would create a `data.csv.dvc` `.dvc` file with the
following content:

```yaml
md5: 3d1a3e5a5b662490e198d6a6ae84984b
outs:
- cache: true
md5: c8263e8422925b0872ee1fb7c953742a
- md5: c8263e8422925b0872ee1fb7c953742a
path: data.csv
```
Expand Down
2 changes: 1 addition & 1 deletion content/docs/start/data-versioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ easily versioned like source code with Git, as a placeholder for the original
data (which gets listed in `.gitignore`):

```dvc
$ git add data/.gitignore data/data.xml.dvc
$ git add data/data.xml.dvc data/.gitignore
$ git commit -m "Add raw data"
```

Expand Down
2 changes: 1 addition & 1 deletion content/docs/use-cases/shared-development-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Let's say you are cleaning up raw data for later stages:
$ dvc add raw
$ dvc run -n clean_data -d raw -o clean ./cleanup.py raw clean
# The data is cached in the shared location.
$ git add raw.dvc dvc.yaml dvc.lock
$ git add raw.dvc dvc.yaml dvc.lock .gitignore
$ git commit -m "cleanup raw data"
$ git push
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Untracked files:
images.dvc
model.pkl.dvc
$ git add .gitignore images.dvc model.pkl.dvc
$ git add images.dvc model.pkl.dvc .gitignore
$ git commit -m "Track images and model with DVC"
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ $ dvc add model.h5
Let's commit the current state:

```dvc
$ git add .gitignore model.h5.dvc data.dvc metrics.csv
$ git add data.dvc model.h5.dvc metrics.csv .gitignore
$ git commit -m "First model, trained with 1000 images"
$ git tag -a "v1.0" -m "model v1.0, 1000 images"
```
Expand Down Expand Up @@ -232,7 +232,7 @@ $ dvc add model.h5
Let's commit the second version:

```dvc
$ git add model.h5.dvc data.dvc metrics.csv
$ git add data.dvc model.h5.dvc metrics.csv
$ git commit -m "Second model, trained with 2000 images"
$ git tag -a "v2.0" -m "model v2.0, 2000 images"
```
Expand Down
3 changes: 0 additions & 3 deletions content/docs/user-guide/dvc-files-and-directories.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,19 +303,16 @@ data/images/
└── index.jpeg
$ dvc add data/images
...
```

When running `dvc add` on this directory of images, a `data/images.dvc`
[DVC-file](/doc/user-guide/dvc-files-and-directories) is created, containing the
hash value of the directory:

```yaml
md5: 77e511dafe2178d936e54331d5d6288f
outs:
- md5: 196a322c107c2572335158503c64bfba.dir
path: data/images
# ...
```

The directory in cache is stored as a JSON file (with `.dir` file extension)
Expand Down
2 changes: 1 addition & 1 deletion content/docs/user-guide/updating-tracked-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ And start tracking it again:

```dvc
$ dvc add train.tsv
$ git add train.tsv.dvc
$ git add train.tsv.dvc .gitignore
$ git commit -m "new train data"
```

Expand Down

0 comments on commit b4d6cc3

Please sign in to comment.