Version Control
Let's make history!

xkcd comic 3064
The building blocks of a scientific result are rarely static
Analysis code, manuscripts, ... evolve.
(Rewrite, fix bugs, add functions, refactor, extend, ...)
Version control helps you to...
CC-BY Scriberia & The Turing Way
  • keep things organized
  • keep track of changes
  • revert changes or go
    back to previous states
  • collect and share digital provenance
The building blocks of a scientific result are rarely static
Data changes, too!
(errors are fixed, data is extended, naming standards change,
an analysis requires only a subset of your data...)


Sadly, Git doesn't handle large files well.

DataLad Datasets

A DataLad dataset is a joined Git + git-annex repository

  datalad create -c yoda penguin-beaks
  cd penguin-beaks
  • Create a new dataset "penguin-beaks". It will become a home to a penguin-related data science project. Use the command option -c yoda.
  • Explore the dataset:
    • What purpose does the structure serve?
    • Can you find special configurations?
  • Modify README.md by adding a description of the datasets' purpose. Save this modification.

  datalad status

  datalad save -m "Add Dataset description"

Local version control

Procedurally, version control is easy with DataLad!


Advice:
  • Save meaningful units of change
  • Attach helpful commit messages

Test your knowledge further

handbook.datalad.org/r.html?challenge-datasets