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
This commit is contained in:
parent
c1b330189e
commit
56f90b3dae
1 changed files with 3 additions and 17 deletions
20
main.latex
20
main.latex
|
@ -653,23 +653,6 @@
|
||||||
}
|
}
|
||||||
\end{frame}
|
\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}
|
\begin{frame}
|
||||||
\frametitle{Branches}
|
\frametitle{Branches}
|
||||||
|
|
||||||
|
@ -761,12 +744,15 @@
|
||||||
\begin{minted}{bash}
|
\begin{minted}{bash}
|
||||||
# List Branches
|
# List Branches
|
||||||
git branch # -v adds more info
|
git branch # -v adds more info
|
||||||
|
|
||||||
# Create a branch called test
|
# Create a branch called test
|
||||||
git branch test # or
|
git branch test # or
|
||||||
cp ~/.git/refs/heads/master ~/.git/refs/heads/test
|
cp ~/.git/refs/heads/master ~/.git/refs/heads/test
|
||||||
|
|
||||||
# Switch to new branch
|
# Switch to new branch
|
||||||
git switch test # or
|
git switch test # or
|
||||||
git checkout test
|
git checkout test
|
||||||
|
|
||||||
# Create and switch in one go
|
# Create and switch in one go
|
||||||
git switch -c test # or
|
git switch -c test # or
|
||||||
git checkout -b test
|
git checkout -b test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue