Skip to content

Instantly share code, notes, and snippets.

@mribeirodantas
Last active March 4, 2020 12:02
Show Gist options
  • Select an option

  • Save mribeirodantas/da7c084b70c3922e13342ee2acbc8861 to your computer and use it in GitHub Desktop.

Select an option

Save mribeirodantas/da7c084b70c3922e13342ee2acbc8861 to your computer and use it in GitHub Desktop.
# Setting up data
mkdir data
# Replace the next line with the path where you saved simulation.tsv
dvc get-url ~/Dropbox/PhD\ data/simulation.tsv data/
# If you stop here, git will see the data file what may make you
# feel like you should git add/commit it. *Don't do it*, you should not
# git commit data files. They're huge and git is not made for this.
# Instead, request dvc to track it.
dvc add data/simulation.tsv
# This command will generate the data file metadata which is what
# you should track with git. Also ask git to track the .gitignore
# file created by DVC so that git will stop suggesting you to track
# the big data files.
git add data/simulation.tsv.dvc data/.gitignore
git commit -m "Adds source data to DVC"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment