version-control

Materials originally developed for the "Version control for research" breakout session of the Best Practice for Code Archiving workshop, 11 December 2016.

View the Project on GitHub tdjames1/version-control

Introduction to version control for research

This tutorial introduces a basic workflow for version control using git and the popular online hosting service, GitHub. The aim is to provide a starting point for researchers who want to curate and distribute their code.

You can choose to follow either the tutorial on Using git on the command line or Using git through RStudio.

Preliminaries

Make sure that you have what you need to get started

Using git on the command line

Using git through RStudio

Citations

The sections of this tutorial dealing with RStudio and GitHub were adapted from (1).

(1) (Mike Croucher & Anna Krystalli. (2016). Introduction to version control with RStudio [Data set]. Zenodo. http://doi.org/10.5281/zenodo.61435) DOI