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
master
Jonathan Hodgson 4 years ago
parent c1b330189e
commit 56f90b3dae
  1. 20
      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

Loading…
Cancel
Save