|
|
@ -252,31 +252,6 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
\end{frame} |
|
|
|
\end{frame} |
|
|
|
|
|
|
|
|
|
|
|
\begin{frame} |
|
|
|
|
|
|
|
\frametitle{Staging Area} |
|
|
|
|
|
|
|
\begin{itemize} |
|
|
|
|
|
|
|
\item Sometimes called the git index |
|
|
|
|
|
|
|
\item An intermediate area in which you can pick files to be included in the next commit. |
|
|
|
|
|
|
|
\item Also allows you to exclude some files from your version history. |
|
|
|
|
|
|
|
\begin{itemize} |
|
|
|
|
|
|
|
\item Log files |
|
|
|
|
|
|
|
\item Binary files |
|
|
|
|
|
|
|
\item Minified files |
|
|
|
|
|
|
|
\end{itemize} |
|
|
|
|
|
|
|
\end{itemize} |
|
|
|
|
|
|
|
\note{% |
|
|
|
|
|
|
|
This is the last thing before we start actually doing stuff (promise). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is particularly useful if you have multiple logically unrelated changes and want to |
|
|
|
|
|
|
|
make separate snapshots for each. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Also useful if when programming you write your tests along side your code, you would |
|
|
|
|
|
|
|
normally want those to be separate snapshots. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
We will talk about .gitignore later which is another way of ignoring files |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
\end{frame} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin{frame}[fragile] |
|
|
|
\begin{frame}[fragile] |
|
|
|
\frametitle{Install} |
|
|
|
\frametitle{Install} |
|
|
|
|
|
|
|
|
|
|
@ -375,6 +350,19 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
\end{frame} |
|
|
|
\end{frame} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin{frame} |
|
|
|
|
|
|
|
\frametitle{Create a repository} |
|
|
|
|
|
|
|
\begin{center} |
|
|
|
|
|
|
|
\includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{auto-shell-tree-empty-git.pdf} |
|
|
|
|
|
|
|
\end{center} |
|
|
|
|
|
|
|
\note{% |
|
|
|
|
|
|
|
Do this in a live terminal. MAKE SURE YOU MAKE YOUR FONT BIGGER |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Show that the \mintinline{bash}{.git} folder has been created and do a tree to show what is |
|
|
|
|
|
|
|
in it. |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
\end{frame} |
|
|
|
|
|
|
|
|
|
|
|
\begin{frame}[fragile] |
|
|
|
\begin{frame}[fragile] |
|
|
|
\frametitle{Git status} |
|
|
|
\frametitle{Git status} |
|
|
|
|
|
|
|
|
|
|
@ -389,6 +377,31 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
\end{frame} |
|
|
|
\end{frame} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin{frame} |
|
|
|
|
|
|
|
\frametitle{Staging Area} |
|
|
|
|
|
|
|
\begin{itemize} |
|
|
|
|
|
|
|
\item Sometimes called the git index |
|
|
|
|
|
|
|
\item An intermediate area in which you can pick files to be included in the next commit. |
|
|
|
|
|
|
|
\item Also allows you to exclude some files from your version history. |
|
|
|
|
|
|
|
\begin{itemize} |
|
|
|
|
|
|
|
\item Log files |
|
|
|
|
|
|
|
\item Binary files |
|
|
|
|
|
|
|
\item Minified files |
|
|
|
|
|
|
|
\end{itemize} |
|
|
|
|
|
|
|
\end{itemize} |
|
|
|
|
|
|
|
\note{% |
|
|
|
|
|
|
|
This is the last thing before we start actually doing stuff (promise). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is particularly useful if you have multiple logically unrelated changes and want to |
|
|
|
|
|
|
|
make separate snapshots for each. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Also useful if when programming you write your tests along side your code, you would |
|
|
|
|
|
|
|
normally want those to be separate snapshots. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
We will talk about .gitignore later which is another way of ignoring files |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
\end{frame} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin{frame}[fragile] |
|
|
|
\begin{frame}[fragile] |
|
|
|
\frametitle{Staging Area} |
|
|
|
\frametitle{Staging Area} |
|
|
@ -1222,4 +1235,16 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
\end{frame} |
|
|
|
\end{frame} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin{frame} |
|
|
|
|
|
|
|
\frametitle{Questions} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You can find this presentation here: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\href{https://git.jonathanh.co.uk/GitPresentation}{https://git.jonathanh.co.uk/GitPresentation} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\note{% |
|
|
|
|
|
|
|
Yes, this presentation uses git for version control |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
\end{frame} |
|
|
|
|
|
|
|
|
|
|
|
\end{document} |
|
|
|
\end{document} |
|
|
|