introduction_handouts.tex 1.55 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
\documentclass{article}
\usepackage{fullpage}
\usepackage{listings}

\frenchspacing
\setlength{\parindent}{0pt}
\pagestyle{empty}

\begin{document}
\begin{center}
{\bf Git Introduction Course}

Git Introduction practical.
\end{center}
\bigskip

\subsubsection*{Local configuration.}
First, let Git know what your name and e-mail address is:
\begin{lstlisting}
  $ git config --global user.name "<Your Name>"
  $ git config --global user.email "<name@lumc.nl>"
22
  $ cat ~/.gitconfig
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
\end{lstlisting}
\bigskip

Check whether you have an ssh key:
\begin{lstlisting}
  $ cat ~/.ssh/id_rsa.pub
\end{lstlisting}
\bigskip

If not, make one:
\begin{lstlisting}
  $ ssh-keygen
  Enter file in which to save the key (/home/<username>/.ssh/id_rsa):
  Enter passphrase (empty for no passphrase):
  Enter same passphrase again:
\end{lstlisting}
You can leave all fields blank.

\subsubsection*{Remote configuration.}
Open \texttt{https://git.lumc.nl} in your browser.
\bigskip

In the authentication form, use your LUMC username and password (LDAP login).
\bigskip

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 ``My profile''.
\bigskip

Check your name and e-mail address (you probably want to change your name).
\bigskip

To be able to upload new versions, you need to add your ssh key. Click the
``Add Public Key'' button.

Give your key a title (e.g., ``Course Laptop'').

Copy your ssh key to the key field (see the \texttt{cat} command above).
\end{document}