Skip to content
Snippets Groups Projects
Commit b572ee54 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

presentation.tex: git init

parent c0f5d1cd
No related branches found
No related tags found
No related merge requests found
...@@ -102,13 +102,50 @@ time so that you can recall specific versions later. ...@@ -102,13 +102,50 @@ time so that you can recall specific versions later.
\begin{frame}[fragile] \begin{frame}[fragile]
\frametitle{Creating a git repository} \frametitle{Creating a git repository}
Creating a project folder
\begin{shcode} \begin{shcode}
~ $ mkdir alpha ~ $ mkdir alpha
~ $ cd alpha ~ $ cd alpha
~/alpha $ mkdir data ~/alpha $ mkdir data
~/alpha $ printf 'a' > data/letter.txt ~/alpha $ echo 'a' > \
~/alpha $ data/letter.txt
\end{shcode}
we have :
\begin{shcode}
alpha
└── data
└── letter.txt
\end{shcode}
\end{frame}
\begin{frame}[fragile]
\frametitle{Creating a git repository}
Creating a git repository
\begin{shcode}
~/alpha $ git init
Initialized empty Git repository in alpha/.git/
\end{shcode} \end{shcode}
we have :
\begin{columns}
\begin{column}{0.6\textwidth}
\begin{shcode}
alpha
├── data
│ └── letter.txt
└── .git
├── objects
etc...
\end{shcode}
\end{column}
\begin{column}{0.4\textwidth}
\includegraphics[width=0.9\textwidth]{./img/vcs_local.png}
\end{column}
\end{columns}
The \texttt{.git} directory and its contents are Git’s.
All the other files are collectively known as the \textbf{working copy}.
They are the user’s.
\end{frame} \end{frame}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment