Setup

In a browser:

Introduction

Who has a directory on their computer with a bunch of filenames that look like these? (1531)

And how about one that looks like this? (1323)

What we’re going to learn about today is how to get rid of folders like this and keep the same kind of backup and change information in a more useful way.

Version control gives you a better way to track changes to things like data files and code in a more manageable way. That’s important because when the reviews come back on your paper and ask you to perform some additional analyses and you open up this directory, it can be pretty difficult to figure out which file you should actually use. At the very least you’ll spend a bunch of extra time figuring it out before you get to work, but I’ve also certainly picked the wrong file and had to redo all of my work after I finally realized I wasn’t getting the same results as in the submitted version of the manuscript.

Benefits of version control

Git

date,species,number
2014-04-15,chickadee,3
2014-04-15,bluejay,3
2014-04-16,sparrow,2
2014-04-16,mallard,2
2014-04-17,robin,999

Advantages

Collaboration

Common points of confusion