Let’s say that you’re working on analyzing fish scale size data one day. Unfortunately you weren’t using version control and your cat jumped all over your keyboard and managed to replace your analysis code with:
asd;fljkzbvc;iobv;iojre,nmnmbveaq389320pr9c9cd
ds8
a
d8of8pp
before somehow hitting Ctrl-s
and overwriting all of your hard word.
Determined to not let this happen again you’ve committed to using git
for
version control.
Install Git
for your operating system following the
setup instructions. Then
create a new repo at the Github organization for the class:
+
at the upper right corner of the page and choose New repository
.dcsemester
) as the Owner
of the
repo.Repository name
that follows the form FirstnameLastname
.Private
.Initialize this repository with a README
.Create Repository
.Next, set up a project for this assignment in RStudio with the following steps:
Clone or download
button ->
Click the Copy to clipboard
button.Repository URL:
.Project directory name:
blank; automatically given repo name.Create project as subdirectory of:
.Create Project
.Git
tab in the upper right window.