Commit 5524ca9c authored by Mihai's avatar Mihai

Updated GitLab roles according to new convention.

parent 71fe2ecb
...@@ -23,7 +23,8 @@ Please take the following into account with respect to our GitLab server: ...@@ -23,7 +23,8 @@ Please take the following into account with respect to our GitLab server:
page. page.
\end{itemize} \end{itemize}
It is convenient to set up an ssh key on GitLab. Make one as follows (you can leave all fields blank): It is convenient to set up an ssh key on GitLab. Make one as follows (you can
leave all fields blank):
\begin{lstlisting} \begin{lstlisting}
$ ssh-keygen $ ssh-keygen
Enter file in which to save the key (/home/<username>/.ssh/id_rsa): Enter file in which to save the key (/home/<username>/.ssh/id_rsa):
...@@ -35,16 +36,19 @@ It is convenient to set up an ssh key on GitLab. Make one as follows (you can le ...@@ -35,16 +36,19 @@ It is convenient to set up an ssh key on GitLab. Make one as follows (you can le
Open \url{https://git.lumc.nl} in your browser and log in. Open \url{https://git.lumc.nl} in your browser and log in.
\medskip \medskip
Click on your avatar (top-right corner), choose ``Settings'', and then go the ``SSH Keys'' page. Click on your avatar (top-right corner), choose ``Settings'', and then go the
``SSH Keys'' page.
\medskip \medskip
Copy your ssh key, retrieved with the following \lstinline{cat} command, and paste it in the ``Key'' field: Copy your ssh key, retrieved with the following \lstinline{cat} command, and
paste it in the ``Key'' field:
\begin{lstlisting} \begin{lstlisting}
$ cat ~/.ssh/id_rsa.pub $ cat ~/.ssh/id_rsa.pub
\end{lstlisting} \end{lstlisting}
\medskip \medskip
Give your key a title (e.g., ``Course machine'') and press the ``Add key'' button. Give your key a title (e.g., ``Course machine'') and press the ``Add key''
button.
\bigskip \bigskip
\subsubsection*{Add your repository to GitLab} \subsubsection*{Add your repository to GitLab}
...@@ -93,34 +97,43 @@ all these changes are now present both on your local machine and on the GitLab ...@@ -93,34 +97,43 @@ all these changes are now present both on your local machine and on the GitLab
server. server.
\subsubsection*{Collaboration} \subsubsection*{Collaboration}
In this practical, you'll work with both your repository and with the repository your neighbour created In this practical, you'll work with both your repository and with the
repository your neighbour created
during the previous practical. We'll refer to this repository as {\bf N}, and during the previous practical. We'll refer to this repository as {\bf N}, and
to your own repository from the previous practical as {\bf Y}. Note that by now both repositories should have a to your own repository from the previous practical as {\bf Y}. Note that by now
both repositories should have a
corresponding GitLab project (a remote repository). corresponding GitLab project (a remote repository).
\bigskip \bigskip
Make sure that your GitLab project \textbf{Y} is private and add your colleague as a member to it as \textbf{Guest}. Make sure that your GitLab project \textbf{Y} is private and add your colleague
as a member to it as \textbf{Guest}.
\bigskip \bigskip
Try to \textbf{clone} his or her repository to your local machine. Make sure to do this in a separate directory. Try to \textbf{clone} his or her repository to your local machine. Make sure to
do this in a separate directory.
\begin{itemize} \begin{itemize}
\item \emph{Question:} Was the cloning successful? Try to identify why. \item \emph{Question:} Was the cloning successful? Try to identify why.
\end{itemize} \end{itemize}
Change the role of your neighbour from \textbf{Guest} to \textbf{Developer} and try to \textbf{clone} his repository again once your neighbour made you a \textbf{Developer}. Change the role of your neighbour from \textbf{Guest} to \textbf{Developer} and
try to \textbf{clone} his repository again once your neighbour made you a
\textbf{Developer}.
\bigskip \bigskip
Edit locally a file from your neighbour \textbf{N} directory, stage it, commit it, and try to \textbf{push}. Edit locally a file from your neighbour \textbf{N} directory, stage it, commit
it, and try to \textbf{push}.
\begin{itemize} \begin{itemize}
\item \emph{Question:} Were you able to push? Try to identify why. \item \emph{Question:} Were you able to push? Try to identify why.
\end{itemize} \end{itemize}
Change your neighbour's role in your GitLab project from \textbf{Developer} to \textbf{Master}. Change your neighbour's role in your GitLab project from \textbf{Developer} to
\textbf{Maintainer}.
\bigskip \bigskip
After your neighbour upgraded your role to \textbf{Master} try to push again your changes to his GitLab repository. After your neighbour upgraded your role to \textbf{Maintainer} try to push
again your changes to his GitLab repository.
\medskip \medskip
Inspect the commit graph on GitLab. Inspect the commit graph on GitLab.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment