Commit 47ac8375 authored by Jeroen F.J. Laros's avatar Jeroen F.J. Laros

Added instructions for non LUMC participants.

parent d0537ebd
...@@ -207,6 +207,12 @@ ...@@ -207,6 +207,12 @@
\item Create and configure a user account on the GitLab server. \item Create and configure a user account on the GitLab server.
\item Upload an \bt{ssh-key} to work with Git. \item Upload an \bt{ssh-key} to work with Git.
\end{itemize} \end{itemize}
\bigskip
Or alternatively, if you can not access the internal network:
\begin{itemize}
\item Use \bt{https} to work with GitLab.
\end{itemize}
\vfill \vfill
\permfoot{https://git.lumc.nl/} \permfoot{https://git.lumc.nl/}
......
...@@ -14,7 +14,7 @@ Git Introduction practical. ...@@ -14,7 +14,7 @@ Git Introduction practical.
\end{center} \end{center}
\bigskip \bigskip
\subsubsection*{Local configuration.} \subsubsection*{Local configuration}
First, let Git know what your name and e-mail address is: First, let Git know what your name and e-mail address is:
\begin{lstlisting} \begin{lstlisting}
$ git config --global user.name "<Your Name>" $ git config --global user.name "<Your Name>"
...@@ -23,6 +23,24 @@ First, let Git know what your name and e-mail address is: ...@@ -23,6 +23,24 @@ First, let Git know what your name and e-mail address is:
\end{lstlisting} \end{lstlisting}
\bigskip \bigskip
For the other practicals, it is convenient to have a \texttt{projects} folder
for your repositories:
\begin{lstlisting}
mkdir ~/projects
cd ~/projects
\end{lstlisting}
\newcommand{\generalconfiguration}{
You can now edit your profile by clicking on the ``profile'' button
(pictogram of a torso), located on the top right of your screen. On mouse
over, a text balloon will pop up, saying ``Profile settings''.
\medskip
Check your name and e-mail address (you probably want to change your name).
\bigskip
}
\subsubsection*{Remote configuration for LUMC participants}
Check whether you have an ssh key: Check whether you have an ssh key:
\begin{lstlisting} \begin{lstlisting}
$ cat ~/.ssh/id_rsa.pub $ cat ~/.ssh/id_rsa.pub
...@@ -37,26 +55,46 @@ If not, make one: ...@@ -37,26 +55,46 @@ If not, make one:
Enter same passphrase again: Enter same passphrase again:
\end{lstlisting} \end{lstlisting}
You can leave all fields blank. You can leave all fields blank.
\bigskip
\subsubsection*{Remote configuration.}
Open \texttt{https://git.lumc.nl} in your browser. Open \texttt{https://git.lumc.nl} in your browser.
\bigskip \medskip
In the authentication form, use your LUMC username and password (LDAP login). In the authentication form, use your LUMC username and password (LDAP login).
\bigskip \bigskip
You can now edit your profile by clicking on the ``profile'' button (pictogram \generalconfiguration
of a torso), located on the top right of your screen. On mouse over, a text
balloon will pop up, saying ``My profile''. To be able to upload new versions, you need to add your ssh key. Open the ``SSH
Keys'' tab and click the ``Add SSH Key'' button.
\medskip
Give your key a title (e.g., ``Course laptop'').
\medskip
Copy your ssh key to the key field (see the \texttt{cat} command above).
\subsubsection*{Remote configuration for other participants}
Open \texttt{https://git.lumc.nl} in your browser.
\bigskip \bigskip
Check your name and e-mail address (you probably want to change your name). In the authentication form, use the provided username and password (Standard
login).
\bigskip \bigskip
To be able to upload new versions, you need to add your ssh key. Click the \generalconfiguration
``Add Public Key'' button.
Give your key a title (e.g., ``Course Laptop''). Open \texttt{https://git.lumc.nl/humgen/gitcourse} in your browser.
\bigskip
Copy your ssh key to the key field (see the \texttt{cat} command above). On the right, you see a text box containing the string
\texttt{git@git.lumc.nl:humgen/gitcourse.git}, notice the ``SSH'' button is
selected. During the course we will ask you to use this protocol (ssh) for
remote repositories. Since we do not have access to the LUMC using this
protocol, we are going to use an other protocol.
\bigskip
Click the ``HTTPS'' button, and you will see the string
\texttt{https://git.lumc.nl/humgen/gitcourse.git}. We can use this protocol
(https) for remote repositories.
\end{document} \end{document}
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