This page is a very terse refresher on how to use git in this workshop. It assumes that you remember what you learned in Lecture 3. Go to the materials for that lecture for getting git set up, etc. [note to casual drop-ins – links to the workshop repo won’t work for you. You must be registered for the workshop to receive your account]
Getting lecture-related stuff
Set up a directory to contain workshop instructional materials. I suggest something like ~/cytomics_workshop.
The link (called something like “gitlab repo”) in the syllabus will take you to the git “project” that contains materials. Make sure your URL method is set to HTTPS, then copy the project URL to the clipboard.
In RStudio, upper right, select Project > New Project.
Select Version control
Paste the URL from your clipboard into the Repository URL. Choose a reasonable name for the project, and put it into the directory you set up for this purpose.
IMPORTANT: If you plan to make any changes (for example, editing code in examples or homework assignments), to avoid confusion create a branch (Use RStudio > Git > More > Shell to do this):
git checkout -b homework
will create a new branch called ‘homework’, and place you in it (as you’ll see in the branch selector, upper right).
To get any updates I might have made from the Gitlab repo (e.g. updated presentations, etc.), change back to master first, then do a pull. But first, be sure to commit your changes to the homework branch before switching back to master.