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.
If this doesn’t work you can try the following:
For OS X 10.9 and higher, install Git for Mac by downloading and running the
most recent “mavericks” installer from
this list. After
installing Git, there will not be anything in your /Applications
folder, as
Git is a command line program. For older versions of OS X (10.5-10.8)
use the most recent available installer labelled “snow-leopard” available
here
Then create a new repo at the Github organization for the class:
+
at the upper right corner of the page and choose New repository
.fish497-2018
) as the Owner
of the
repo.Repository name
that follows the form FirstnameLastname
.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.