introduction.tex 5.39 KB
Newer Older
1 2
\documentclass[slidestop]{beamer}

3 4
\input{../shared/shared.tex}

5
\author{Jeroen F. J. Laros}
6 7
\title{\courseTitle}
\providecommand{\mySubTitle}{Introduction to Version Control}
8
\providecommand{\myConference}{Git course}
9
\providecommand{\myGroup}{}
10 11
\providecommand{\myDepartment}{Department of Human Genetics}
\providecommand{\myCenter}{Center for Human and Clinical Genetics}
12

13 14 15 16 17 18 19 20
\usetheme{lumc}

\begin{document}

% This disables the \pause command, handy in the editing phase.
%\renewcommand{\pause}{}

% Make the title page.
21
\makeTitleSlide{\includegraphics[width=3.5cm]{git_logo}}
22 23 24

% First page of the presentation.
\section{Introduction}
25 26
\subsection{Version control}
\begin{pframe}
27 28 29
  \emph{The management of changes to documents, computer programs, large web
  sites, and other collections of information.} --- Wikipedia.
  \bigskip
30
  \pause
31

32 33 34 35 36 37 38 39 40
  General features:
  \begin{itemize}
    \item Keeping track of your files in an orderly manner.
    \begin{itemize}
      \item Hiding old versions.
      \item Recording who made changes and when.
    \end{itemize}
    \item Enables collaboration.
  \end{itemize}
41
\end{pframe}
42

43 44 45
\begin{pframe}
  \begin{figure}[]
    \begin{center}
46 47 48
      \fbox{
        \includegraphics[height=0.7\textheight]{project_tree}
      }
49 50 51 52 53
    \end{center}
    \caption{``I have my own system.''}
  \end{figure}
\end{pframe}

54 55
\subsection{Why should I use it?}
\begin{pframe}
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
  For a single user:
  \begin{itemize}
    \item Revert files to a previous state.
    \item Revert the entire project back to a previous state.
    \item Review changes made over time.
    \item Backup.
  \end{itemize}
  \bigskip
  \pause

  For multiple users:
  \begin{itemize}
    \item A reliable way to share files between people/computers.
    \item Allow multiple people working on the same project at the same time.
    \item Conflict resolution.
71
    \item See who made which changes at which time.
72
  \end{itemize}
73
\end{pframe}
74

75 76
\subsection{Why should I not use it?}
\begin{pframe}
77 78 79 80 81 82 83 84
  A list of common excuses:
  \begin{itemize}
    \item It is too much work.
    \item I have my own system.
    \item I am the only one working on this project.
    \item This code will not be used by anyone else.
    \item The bugs can be tracked forever.
    \item \ldots
85 86 87 88 89 90
  \end{itemize}
  \bigskip
  \pause

  Eventually leading to:
  \begin{itemize}
91 92
    \item I'm too busy rewriting the code I accidentally deleted.
  \end{itemize}
93
\end{pframe}
94

95 96
\subsection{Local repository}
\begin{pframe}
97 98 99 100
  \begin{figure}[]
    \begin{center}
      \colorbox{white}{
        \hspace{0.5cm}
101
        \includegraphics[height=0.7\textheight]{18333fig0101-tn}
102 103 104 105 106
        \hspace{0.5cm}
      }
    \end{center}
    \caption{Local version control diagram.}
  \end{figure}
107
\end{pframe}
108

109 110
\subsection{Central repository}
\begin{pframe}
111 112 113 114
  \begin{figure}[]
    \begin{center}
      \colorbox{white}{
        \hspace{0.5cm}
115
        \includegraphics[height=0.7\textheight]{18333fig0102-tn}
116 117 118 119 120
        \hspace{0.5cm}
      }
    \end{center}
    \caption{Centralised version control diagram.}
  \end{figure}
121
\end{pframe}
122

123 124
\subsection{Distributed repositories}
\begin{pframe}
125 126 127 128
  \begin{figure}[]
    \begin{center}
      \colorbox{white}{
        \hspace{0.5cm}
129
        \includegraphics[height=0.7\textheight]{18333fig0103-tn}
130 131 132 133 134
        \hspace{0.5cm}
      }
    \end{center}
    \caption{Distributed version control diagram.}
  \end{figure}
135
\end{pframe}
136 137

\section{Git}
138 139
\subsection{The name}
\begin{pframe}
140 141 142 143 144 145 146 147
  \emph{Git (n): A person who is deemed to be despicable or contemptible.} ---
  WordNet.
  \bigskip
  \pause

  \emph{I'm an egotistical bastard, and I name all my projects after myself.
  First ``Linux'', now ``git''.} --- Linus Torvalds.
  \bigskip
148
\end{pframe}
149

150 151
\subsection{History}
\begin{pframe}
152
  Designed to replace the commercial package \emph{BitKeeper}.
153 154 155 156 157 158 159 160 161
  \begin{itemize}
    \item Speed.
    \item Simple design.
    \item Strong support for non-linear development (thousands of parallel
      branches).
    \item Fully distributed.
    \item Able to handle large projects like the Linux kernel efficiently
      (speed and data size).
  \end{itemize}
162 163 164 165 166 167
  % The copyright holder of BitKeeper, Larry McVoy, had withdrawn gratis use of
  % the product after claiming that Andrew Tridgell had reverse-engineered the
  % BitKeeper protocols.

  % .. version 4.1, released in June 2015, has grown to over 19.5 million lines
  % of code contributed by almost 14,000 programmers.
168
\end{pframe}
169 170

\section{Remotes}
171 172
\subsection{A lot of choices}
\begin{pframe}
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
  GitHub.
  \begin{itemize}
    \item Only free for open source projects.
  \end{itemize}
  \bigskip

  SourceForge, BitBucket, Gitorious, \ldots
  \bigskip

  GitLab.
  \begin{itemize}
    \item Issue tracking.
    \item Wiki.
    \item ``Project wall''.
    \item Snippet.
    \item User profiles.
  \end{itemize}

  \vfill
192 193 194 195 196
  \permfoot{\url{https://github.com/}}
\end{pframe}

\section{GitLab demonstration}
\begin{pframe}
197
\end{pframe}
198 199

\section{Practical}
200 201
\subsection{Outline}
\begin{pframe}
202 203 204
  We are going to:
  \begin{itemize}
    \item Create and configure a user account on the GitLab server.
205
    \item Upload an \lstinline{ssh-key} to work with Git.
206 207 208
  \end{itemize}

  \vfill
209
  \permfoot{\url{https://git.lumc.nl/}}
210
\end{pframe}
211

212 213 214 215 216
\makeAcknowledgementsSlide{
  \begin{tabular}{l}
    \acknowledgements
  \end{tabular}
  \bigskip
217

218
  \hfill\includegraphics[width=3.5cm]{git_logo}
219

220 221 222 223
  \begin{tabular}{l}
    \small\url{https://git.lumc.nl/humgen/gitcourse}
  \end{tabular}
}
224

225
\end{document}