1.4 Getting a project repository
All of our code exist on a GitLab server (https://devlab.vbi.vt.edu)
1.4.1 Using Terminal
You can use the SSH
or HTTPS
link (selected blue text) to run git clone
to pull down the repository code.
In general this should be cloned into the git
folder in your home folder.
1.4.2 Using RStudio
The steps in RStudio actually do the same thing as the steps from the terminal.
Find the repository you plan to work on.
Get the SSH
url.
You can also use the HTTPS
url if you have not setup your SSH keys.
File > New Project
Version Control
Git
Enter repository URL
Paste in the repository URL from earlier. The “Project data name” should auto fill itself with the name of the repository (selected in blue text).
It’s highly advised to put the project into a folder designated for repositories (e.g., git, Repositories).
You can make sure the project get’s clone
d to the correct place in the “Create project as a subdirectory of” section of the page.
The loaded project
RStudio will git clone
the repository to the designated folder and open the project.
The top right corner will tell you which project you are in.
Make sure you check this every time you start working.