From 56f90b3daecec254c1aab9e2f103ac2f66d0bf0d Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Fri, 7 Aug 2020 13:39:41 +0100 Subject: [PATCH] Removes slide on HEAD I don't think it needs its own slide now that I have introduced the slide outlining the different types of reference --- main.latex | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/main.latex b/main.latex index b9295c2..a4a95b8 100644 --- a/main.latex +++ b/main.latex @@ -653,23 +653,6 @@ } \end{frame} -\begin{frame} - \frametitle{References} - \framesubtitle{HEAD} - \begin{itemize} - \item The HEAD references is directly in the \mintinline{bash}{.git} folder. - \item It refers to the ``current" commit. It is how git knows where you are. - \item This normally refers to a branch's head commit. - \item In some situations it will refer to a commit directly. - \end{itemize} - \note{% - Not sure why it is not in refs folder - - If it refers directly to a commit, the repository is in what is called a ``detached head" - state. - } -\end{frame} - \begin{frame} \frametitle{Branches} @@ -761,12 +744,15 @@ \begin{minted}{bash} # List Branches git branch # -v adds more info + # Create a branch called test git branch test # or cp ~/.git/refs/heads/master ~/.git/refs/heads/test + # Switch to new branch git switch test # or git checkout test + # Create and switch in one go git switch -c test # or git checkout -b test