summaryrefslogtreecommitdiffstats
path: root/workshop.tex
diff options
context:
space:
mode:
authorThibaut <thibaut@horel.org>2012-05-30 15:55:32 -0700
committerThibaut <thibaut@horel.org>2012-05-30 15:55:32 -0700
commitd7ab723f78e5294088b1858e908d5b8860f57f82 (patch)
tree1fd0971fb03110f248f6607aa52468a99615ac52 /workshop.tex
parentbbf842d17e3164f19588b4a4fc23440ce802c510 (diff)
downloadgit_workshop-d7ab723f78e5294088b1858e908d5b8860f57f82.tar.gz
Everything except the practice partHEADmaster
Diffstat (limited to 'workshop.tex')
-rw-r--r--workshop.tex50
1 files changed, 46 insertions, 4 deletions
diff --git a/workshop.tex b/workshop.tex
index b3491cb..f661c35 100644
--- a/workshop.tex
+++ b/workshop.tex
@@ -49,14 +49,16 @@ Examples:
\begin{frame}{Bad solutions}
\begin{itemize}
-\item Email attachments: \visible<2->{nobody in their right mind wants to do that}
-\item Dropbox: \visible<3->{Good for file sharing, terrible at handling concurrency}
+\item Email attachments\visible<2->{: nobody in their right mind wants to do that}
+\vspace{2em}
+\item Dropbox\visible<3->{: Good for file sharing, terrible at handling concurrency}
\end{itemize}
\end{frame}
\begin{frame}{Version Control Systems}
\begin{itemize}
\item designed exactly for this purpose
+\vspace{2em}
\item several flavors:
\begin{itemize}
\item centralized (ex: Subversion)
@@ -70,13 +72,53 @@ Examples:
\end{frame}
\begin{frame}{Local vs. distant history}
-Evrything can be done locally:
+Everything can be done locally:
\begin{center}
\includegraphics[scale=.9]{figures/overview.pdf}
\end{center}
\end{frame}
-\begin{frame}
+\begin{frame}{Initialising}
+Existing repository:
+
+\begin{block}{}
+{\tt \$ git clone <user>@palosgit01:/git/<project>}
+\end{block}
+
+\vspace{2em}
+
+Non-existing repository:
+\begin{itemize}
+\item Ask Umar to create a project for your team
+\item Repeat previous step
+\end{itemize}
+\end{frame}
+
+\begin{frame}{Local editing}
+\begin{itemize}
+\item Edit a few files
+\vspace{2em}
+\item When you are happy with the state of the project:
+\begin{block}{}
+{\tt \$ git commit -a -m "Proof of the uniqueness theorem"}
+\end{block}
+\end{itemize}
+\end{frame}
+
+\begin{frame}{File tracking}
+
+\begin{itemize}
+\item By default Git does not track new files
+\item Adding a new file:
+\begin{block}{}
+{\tt \$ git add <filename>}
+\end{block}
+\end{itemize}
+\vspace{2em}
+Which file should you add to the project?
+\end{frame}
+
+\begin{frame}{Synchronizing with other people}
\includegraphics[width=\textwidth]{figures/git-push.pdf}
\end{frame}