使用 DVC 進行資料版本控管入門
Ravi Bhadauria
Machine Learning Engineer
dvc init/path/to/my-project).dvc 目錄中的暫存區/path/to/my-project/.dvc/cachedvc add 分階段暫存檔案

設定遠端
dvc remote add <name> <location>S3 bucket
$ dvc remote add s3_remote \
s3://mys3bucket
['remote "s3_remote"']
url = s3://mys3bucket
$ dvc remote add gcp_remote \
gs://myGCPbucket
$ dvc remote add azure_remote \
azure://mycontainer/path
$ dvc remote add mylocalremote /tmp/dvc
-d 旗標設定預設遠端$ dvc remote add -d mylocalremote /tmp/dvc
.dvc/config 的 core 區段指定[core]
remote = mylocalremote
$ dvc remote list
s3_remote s3://mys3bucket
local_remote /tmp/dvcremote
.dvc/config 讀取 ['remote "s3_remote"']
url = s3://mys3bucket
['remote "local_remote"']
url = /tmp/dvcremote
dvc remote modify 自訂設定$ dvc remote modify s3_remote connect_timeout 300
['remote "s3_remote"']
url = s3://mys3bucket
connect_timeout = 300
dvc remote add-d 指定預設dvc remote listdvc remote modify使用 DVC 進行資料版本控管入門