introduction.tex 5.29 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
\documentclass[slidestop]{beamer}

\title{Introduction to Version Control}
\providecommand{\myConference}{Git course}
\providecommand{\myDate}{Monday, October 14, 2013}
\author{Jeroen F. J. Laros}
\providecommand{\myGroup}{Leiden Genome Technology Center}
\providecommand{\myDepartment}{Department of Human Genetics}
\providecommand{\myCenter}{Center for Human and Clinical Genetics}
\providecommand{\lastCenterLogo}{
  \raisebox{-0.1cm}{
    \includegraphics[height=1cm]{lgtc_logo}
    %\includegraphics[height=0.7cm]{ngi_logo}
  }
}
\providecommand{\lastRightLogo}{
  %\includegraphics[height=0.7cm]{nbic_logo}
  %\includegraphics[height=0.8cm]{nwo_logo_en}
  %\hspace{1.5cm}\includegraphics[height=0.7cm]{gen2phen_logo}
}

\usetheme{lumc}

\begin{document}

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

% Make the title page.
\bodytemplate

% First page of the presentation.
\section{Introduction}
34 35
\subsection{Version control}
\begin{pframe}
36 37 38
  \emph{The management of changes to documents, computer programs, large web
  sites, and other collections of information.} --- Wikipedia.
  \bigskip
39
  \pause
40

41 42 43 44 45 46 47 48 49
  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}
50
\end{pframe}
51

52 53
\subsection{Why should I use it?}
\begin{pframe}
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
  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.
69
    \item See who made which changes at which time.
70
  \end{itemize}
71
\end{pframe}
72

73 74
\subsection{Why should I not use it?}
\begin{pframe}
75 76 77 78 79 80 81 82
  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
83 84 85 86 87 88
  \end{itemize}
  \bigskip
  \pause

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

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

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

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

\section{Git}
136 137
\subsection{The name}
\begin{pframe}
138 139 140 141 142 143 144 145
  \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
146
\end{pframe}
147

148 149
\subsection{History}
\begin{pframe}
150
  Designed to replace the commercial package \emph{BitKeeper}.
151 152 153 154 155 156 157 158 159
  \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}
160
\end{pframe}
161 162

\section{Remotes}
163 164
\subsection{A lot of choices}
\begin{pframe}
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
  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
  \permfoot{https://github.com/}
185
\end{pframe}
186 187

\section{Practical}
188 189
\subsection{Outline}
\begin{pframe}
190 191 192
  We are going to:
  \begin{itemize}
    \item Create and configure a user account on the GitLab server.
193
    \item Upload an \bt{ssh-key} to work with Git.
194
  \end{itemize}
195 196 197 198 199 200
  \bigskip

  Or alternatively, if you can not access the internal network:
  \begin{itemize}
    \item Use \bt{https} to work with GitLab.
  \end{itemize}
201 202 203

  \vfill
  \permfoot{https://git.lumc.nl/}
204
\end{pframe}
205

206 207
\section{Questions?}
\lastpagetemplate
208
\begin{pframe}
209 210 211 212 213 214 215
  \begin{center}
    Acknowledgements:
    \bigskip
    \bigskip

    Martijn Vermaat

216
    Wibowo Arindrarto
217

218
    Zuotian Tatum
219
  \end{center}
220 221 222

  \vfill
  \permfoot{https://humgenprojects.lumc.nl/trac/humgenprojects/wiki/git}
223
\end{pframe}
224
\end{document}