Skip to content
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

start: tabs for Windows cmd blocks (Versioning page) #3273

Merged
merged 7 commits into from
Mar 1, 2022
29 changes: 20 additions & 9 deletions content/docs/start/data-and-model-versioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,9 @@ $ git commit -m "Configure remote storage"

DVC remotes let you store a copy of the data tracked by DVC outside of the local
cache (usually a cloud storage service). For simplicity, let's set up a _local
remote_:
remote_ in `/tmp/dvcstore` (create the dir first if needed):
iesahin marked this conversation as resolved.
Show resolved Hide resolved

```dvc
$ mkdir -p /tmp/dvcstore
$ dvc remote add -d myremote /tmp/dvcstore
jorgeorpinel marked this conversation as resolved.
Show resolved Hide resolved
$ git commit .dvc/config -m "Configure local remote"
```
Expand Down Expand Up @@ -140,12 +139,10 @@ set up earlier. You can check that the data has been stored in the DVC remote
with:

```dvc
$ ls -R /tmp/dvcstore
/tmp/dvcstore/:
a3

/tmp/dvcstore/a3:
04afb96060aad90176268345e10355
$ tree /tmp/dvcstore
jorgeorpinel marked this conversation as resolved.
Show resolved Hide resolved
/tmp/dvcstore
└── a3
   └── 04afb96060aad90176268345e10355
```

</details>
Expand Down Expand Up @@ -174,7 +171,7 @@ $ rm -f data/data.xml
</tab>
<tab title="Windows">

```dvc
```powershell
jorgeorpinel marked this conversation as resolved.
Show resolved Hide resolved
$ rmdir .dvc\cache
$ del data\data.xml
```
Expand Down Expand Up @@ -204,11 +201,25 @@ latest version:
Let's say we obtained more data from some external source. We can pretend this
is the case by doubling the dataset:

<toggle>
<tab title="Mac/Linux">

```dvc
$ cp data/data.xml /tmp/data.xml
$ cat /tmp/data.xml >> data/data.xml
```

</tab>
<tab title="Windows">

```powershell
$ copy data\data.xml ...\tmp\data.xml
$ type .../tmp/data.xml >> data\data.xml
```

</tab>
</toggle>

</details>

```dvc
Expand Down