introduction.tex 5.22 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 34
\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}
\begin{frame}
35
  \frametitle{Version control.}
36 37 38 39

  \emph{The management of changes to documents, computer programs, large web
  sites, and other collections of information.} --- Wikipedia.
  \bigskip
40
  \pause
41

42 43 44 45 46 47 48 49 50
  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}
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
\end{frame}

\begin{frame}
  \frametitle{Why should I use it?}

  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.
    \item \ldots
  \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.
72
    \item See who made which changes at which time.
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
    \item \ldots
  \end{itemize}
\end{frame}

\begin{frame}
  \frametitle{Why should I not use it?}

  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
88 89 90 91 92 93
  \end{itemize}
  \bigskip
  \pause

  Eventually leading to:
  \begin{itemize}
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
    \item I'm too busy rewriting the code I accidentally deleted.
  \end{itemize}
\end{frame}

\begin{frame}
  \frametitle{Local repository.}

  \begin{figure}[]
    \begin{center}
      \colorbox{white}{
        \hspace{0.5cm}
        \includegraphics[height=0.8\textheight]{pics/18333fig0101-tn}
        \hspace{0.5cm}
      }
    \end{center}
    \caption{Local version control diagram.}
    \label{}
  \end{figure}
112 113
\end{frame}

114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
\begin{frame}
  \frametitle{Central repository.}
  
  \begin{figure}[]
    \begin{center}
      \colorbox{white}{
        \hspace{0.5cm}
        \includegraphics[height=0.8\textheight]{pics/18333fig0102-tn}
        \hspace{0.5cm}
      }
    \end{center}
    \caption{Centralised version control diagram.}
    \label{}
  \end{figure}
\end{frame}

\begin{frame}
  \frametitle{Distributed repositories.}

  \begin{figure}[]
    \begin{center}
      \colorbox{white}{
        \hspace{0.5cm}
        \includegraphics[height=0.8\textheight]{pics/18333fig0103-tn}
        \hspace{0.5cm}
      }
    \end{center}
    \caption{Distributed version control diagram.}
    \label{}
  \end{figure}
\end{frame}

\section{Git}
\begin{frame}
  \frametitle{The name.}

  \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
\end{frame}

\begin{frame}
  \frametitle{History.}

163
  Designed to replace the commercial package \emph{BitKeeper}.
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
  \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}
\end{frame}

\section{Remotes}
\begin{fframe}
  \frametitle{A lot of choices.}

  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/}
\end{fframe}

\section{Practical}
\begin{fframe}
  \frametitle{Outline.}

  We are going to:
  \begin{itemize}
    \item Create and configure a user account on the GitLab server.
208
    \item Upload an \bt{ssh-key} to work with Git.
209 210 211 212 213 214
  \end{itemize}

  \vfill
  \permfoot{https://git.lumc.nl/}
\end{fframe}

215 216
\section{Questions?}
\lastpagetemplate
217
\begin{fframe}
218 219 220 221 222 223 224 225 226 227
  \begin{center}
    Acknowledgements:
    \bigskip
    \bigskip

    Martijn Vermaat

    Zuotian Tatum

  \end{center}
228 229 230 231

  \vfill
  \permfoot{https://humgenprojects.lumc.nl/trac/humgenprojects/wiki/git}
\end{fframe}
232 233

\end{document}