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