Commit d851ecee authored by Jeroen F.J. Laros's avatar Jeroen F.J. Laros

First version of the basics handouts.

parent a3abe0e0
\documentclass{article}
\usepackage{fullpage}
\frenchspacing
\setlength{\parindent}{0pt}
\pagestyle{empty}
\begin{document}
\begin{center}
{\bf Git Introduction Course}
Git Basics practical.
\end{center}
\bigskip
\subsubsection*{Create a repository.}
First, create an empty directory and use ``\texttt{git init}'' to make a new
repository.
\begin{itemize}
\item \emph{Question:} How can you see that you are working in a Git
repository?
\end{itemize}
\bigskip
Check the status of your files.
\bigskip
\subsubsection*{Your first commit.}
Create a new file named ``README'' (with an editor, or by using the
``\texttt{touch}'' command).
\begin{itemize}
\item \emph{Question:} What is the status of this new file?
\end{itemize}
\bigskip
Stage this file for the next commit using ``\texttt{git add}''.
\begin{itemize}
\item \emph{Question:} What is the status of this file now?
\end{itemize}
\bigskip
Commit your changes.
\begin{itemize}
\item \emph{Question:} What happened to the status?
\end{itemize}
\bigskip
\subsubsection*{Manipulation in the staging area.}
Edit your file and stage it.
\bigskip
Now remove the file from the staging area.
\bigskip
\subsubsection*{Working with versions.}
Commit your changed file.
\bigskip
Now you change your mind, and want to revert this commit.
\begin{itemize}
\item \emph{Hint:} Use ``\texttt{git log}'' to see a list of all your
versions.
\end{itemize}
\bigskip
Edit your file again and check the differences with your last commit.
\begin{itemize}
\item \emph{Question:} What is the difference with your first commit?
\end{itemize}
\bigskip
Make a file that you do not want to track.
\end{document}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment