From 025f8d0ca562fc6159053b965d2ba708e092da8a Mon Sep 17 00:00:00 2001 From: Martijn Vermaat <martijn@vermaat.name> Date: Mon, 14 Oct 2013 11:08:25 +0200 Subject: [PATCH] [WIP] Branching handouts --- branching/branching_handouts.tex | 53 ++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 branching/branching_handouts.tex diff --git a/branching/branching_handouts.tex b/branching/branching_handouts.tex new file mode 100644 index 0000000..b4c5a9f --- /dev/null +++ b/branching/branching_handouts.tex @@ -0,0 +1,53 @@ +\documentclass{article} +\usepackage{fullpage} + +\frenchspacing +\setlength{\parindent}{0pt} +\pagestyle{empty} + +\begin{document} +\begin{center} +{\bf Git Introduction Course} + +Working with branches in Git practical. +\end{center} +\bigskip + +\subsubsection*{Inspect the commit graph.} +We'll work from the repository you created in the previous practical. + +\begin{itemize} + \item \emph{Question:} What is you current branch and what is the hash of + the commit it points to? + \item \emph{Question:} What does the commit graph of you repository look + like? +\end{itemize} +\emph{Hint:} Use \texttt{git log} with the appropriate arguments. + +\bigskip + +\subsubsection*{Implement a feature in a new branch.} +Let's do some real work (e.g., add some documentation to the project). + +\bigskip + +Start by creating a branch for your work (give it a descriptive name) and +switch to it. + +\begin{itemize} + \item \emph{Question:} What branches are there now and what are the commits + they point to? +\end{itemize} + +\bigskip + +Implement your feature (e.g. write documentation) and commit your changes. + +\begin{itemize} + \item \emph{Question:} What does the commit graph of you repository look + like now? +\end{itemize} + +\bigskip + +\end{document} -- GitLab