In this practical we will be initializing a repository using a shell window - the choice of which being dependent on what operating system you use. It is most commonly referred to as the terminal.
Follow the instructions to get a local copy of a remote repository nested within a chosen directory.
Go to \url{https://gitlab.com/jumpingrivers-notes/r/jrgit_terminal}.
Fork the repository to your GitLab account, as we did in practical 1.
Click the icon to the right of "Clone with HTTPS".
Go to the terminal tab next to the console tab\sidenote{If a terminal tab is not visible, go to Tools -> Terminal -> New Terminal.}.
Clone the remote repository onto your local machine.
Follow these instructions to initialise a Git project within an existing directory on your local computer. If possible find a directory that contains R files of some nature.
Explore your own workspace using terminal commands to find the working directory you want to initialise.
Initialise the Git repository. What hidden sub-directory do we now see?
r
# A .git sub-directory
Create a .Rproj
R project.
Set the remote origin.
\noindent{\textbf{CHECK}}
\noindent{Run \texttt{git remote -v} to check that we have added the desired remote upstream origin.}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.