-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
guide: begin How To section #1705
Merged
Merged
Changes from 27 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
1fd3f9f
Revert "guide: undo starting How To subsection"
jorgeorpinel c66b888
resolving conflict
imhardikj f3c8776
Merge branch 'master' into guide/how-to
imhardikj 8880af5
update best practices
imhardikj 11ab85b
Merge branch 'master' into guide/how-to
imhardikj 93cb036
Best practices update
imhardikj 3a39654
adding best pratices
imhardikj b2af801
modifying best pratices
imhardikj 2994cf8
Update content/docs/user-guide/how-to/best-practices.md
jorgeorpinel ba02f17
updates
imhardikj ac6e997
updates
imhardikj eb67860
Update best-practices.md
imhardikj fb62cb1
Update best-practices.md
imhardikj 8121897
removing best practice doc
imhardikj a3a5837
Undo dvc add doc
imhardikj c030f4f
Update content/docs/user-guide/how-to/undo-dvc-add.md
jorgeorpinel f0e4c79
updates
imhardikj da456cd
updates
imhardikj 288b627
Update content/docs/user-guide/how-to/undo-adding-data.md
jorgeorpinel 7e3ac80
Update content/docs/user-guide/how-to/undo-adding-data.md
jorgeorpinel 3139491
Update content/docs/user-guide/how-to/undo-adding-data.md
jorgeorpinel dfb9824
updates
imhardikj 33504c9
updates
imhardikj 8e15350
Update content/docs/command-reference/add.md
jorgeorpinel d5f422d
Update content/docs/command-reference/add.md
jorgeorpinel e9edbdd
updates
imhardikj 5bfd2c8
Update content/docs/user-guide/how-to/undo-adding-data.md
jorgeorpinel c7f30b7
Update content/docs/user-guide/how-to/undo-adding-data.md
jorgeorpinel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Undo Adding Data | ||
|
||
There are situations where you want to stop tracking data added previously. | ||
Follow the steps listed here to undo `dvc add`. | ||
|
||
Let's first add a data file into an example <abbr>project</abbr> using | ||
`dvc add`, which creates a `.dvc` file to track the data: | ||
|
||
```dvc | ||
$ dvc add data.csv | ||
$ ls | ||
data.csv data.csv.dvc | ||
``` | ||
|
||
> Note, if you are using `symlink` or `hardlink` as | ||
> [link](doc/user-guide/large-dataset-optimization#file-link-types-for-the-dvc-cache) | ||
> type for DVC <abbr>cache</abbr>, you will have to unprotect the tracked file | ||
> first (see `dvc unprotect`): | ||
jorgeorpinel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
> | ||
> ```dvc | ||
> $ dvc unprotect data.csv | ||
> ``` | ||
|
||
Now let's reverse `dvc add` by removing the corresponding `.dvc` file and | ||
`.gitignore` entry using `dvc remove`: | ||
|
||
```dvc | ||
$ dvc remove data.csv.dvc | ||
``` | ||
|
||
Data file `data.csv` is now no longer being tracked by DVC. | ||
|
||
```dvc | ||
$ git status | ||
Untracked files: | ||
data.csv | ||
``` | ||
|
||
You can run `dvc gc` with the `-w` option to remove the data that isn't | ||
referenced in the current workspace from the cache: | ||
|
||
```dvc | ||
$ dvc gc -w | ||
``` |
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So! It seems this URL transition was not smooth at all. Just leaving this here for future reference and it's not a major page that used to have thousands of visits but we went from over 100 to around 20 total after this 😢 (for now).
A redirect would probably have helped after all (cc @shcheklein) because some the traffic for this page came from old GitHub comments that had a direct link, which after this change started producing 404s (I fixed those comments now).