From 0684f93b871050d19cc5b8ec3b517955262f7a2a Mon Sep 17 00:00:00 2001 From: Sahil Bhosale Date: Tue, 21 Jul 2020 00:09:37 +0530 Subject: [PATCH 1/2] Review all dvc add examples throughout docs #1255 --- content/docs/command-reference/add.md | 2 +- content/docs/command-reference/unprotect.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/docs/command-reference/add.md b/content/docs/command-reference/add.md index 0c1b6b1b80..37b4208403 100644 --- a/content/docs/command-reference/add.md +++ b/content/docs/command-reference/add.md @@ -128,7 +128,7 @@ Track a file with DVC: ```dvc $ dvc add data.xml -... +100% Add|██████████████████████████████████████████████|1/1 [00:00, 4.42file/s] To track the changes with git, run: diff --git a/content/docs/command-reference/unprotect.md b/content/docs/command-reference/unprotect.md index bd4c56ff90..6b4146a4e4 100644 --- a/content/docs/command-reference/unprotect.md +++ b/content/docs/command-reference/unprotect.md @@ -59,11 +59,11 @@ $ ls -lh -rw-r--r-- 1 10576022 Nov 27 13:30 Posts.xml.zip $ dvc add Posts.xml.zip -Saving information to 'Posts.xml.zip.dvc'. +100% Add|██████████████████████████████████████████████|1/1 [00:00, 4.42file/s] To track the changes with git run: - git add .gitignore data.xml.dvc + git add data.xml.dvc .gitignore ``` Check that file is a read-only link (@ sign means a link): From df3a5d5dbcf8aa6ec15471d9ce5b3cbeb2fcb9a4 Mon Sep 17 00:00:00 2001 From: Sahil Bhosale Date: Tue, 21 Jul 2020 10:42:53 +0530 Subject: [PATCH 2/2] Review all dvc add examples throughout docs #1255 #1605 --- content/docs/command-reference/add.md | 5 ----- content/docs/command-reference/unprotect.md | 5 ----- 2 files changed, 10 deletions(-) diff --git a/content/docs/command-reference/add.md b/content/docs/command-reference/add.md index 37b4208403..75501d2eb9 100644 --- a/content/docs/command-reference/add.md +++ b/content/docs/command-reference/add.md @@ -128,11 +128,6 @@ Track a file with DVC: ```dvc $ dvc add data.xml -100% Add|██████████████████████████████████████████████|1/1 [00:00, 4.42file/s] - -To track the changes with git, run: - - git add data.xml.dvc .gitignore ``` As indicated above, a `.dvc` file has been created for `data.xml`. Let's explore diff --git a/content/docs/command-reference/unprotect.md b/content/docs/command-reference/unprotect.md index 6b4146a4e4..38576c15fe 100644 --- a/content/docs/command-reference/unprotect.md +++ b/content/docs/command-reference/unprotect.md @@ -59,11 +59,6 @@ $ ls -lh -rw-r--r-- 1 10576022 Nov 27 13:30 Posts.xml.zip $ dvc add Posts.xml.zip -100% Add|██████████████████████████████████████████████|1/1 [00:00, 4.42file/s] - -To track the changes with git run: - - git add data.xml.dvc .gitignore ``` Check that file is a read-only link (@ sign means a link):