Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
courses
Git course
Commits
bc9e18f4
Commit
bc9e18f4
authored
Aug 29, 2017
by
Mihai Lefter
Browse files
Introduction step by step.
parent
3b7a23c6
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
introduction/images/desperate.svg
0 → 100644
View file @
bc9e18f4
This diff is collapsed.
Click to expand it.
introduction/images/project_tree.svg
0 → 100644
View file @
bc9e18f4
This diff is collapsed.
Click to expand it.
introduction/images/vcs_example/vcs_example_00.svg
0 → 100644
View file @
bc9e18f4
This diff is collapsed.
Click to expand it.
introduction/images/version_control-slide.svg
0 → 100644
View file @
bc9e18f4
This diff is collapsed.
Click to expand it.
introduction/introduction.tex
View file @
bc9e18f4
\documentclass
[slidestop]
{
beamer
}
\usepackage
{
tikz
}
\input
{
../shared/shared.tex
}
\author
{
Jeroen F. J. Laros
}
\author
{}
\title
{
\courseTitle
}
\providecommand
{
\mySubTitle
}{
Introduction to Version Control
}
\providecommand
{
\myConference
}{
\courseTitle
}
...
...
@@ -22,76 +24,166 @@
% First page of the presentation.
\section
{
Introduction
}
\subsection
{
Version control
}
\section
{
What is version control?
}
\subsection
{
Definition
}
\begin{pframe}
\emph
{
The management of changes to documents, computer programs, large web
sites, and other collections of information.
}
--- Wikipedia.
\bigskip
\pause
\emph
{
The
\textbf
{
management of changes
}
to documents, computer programs, large web
sites, and other collections of information.
}
\\
---
\textcolor
{
darkgray
}{
\href
{
https://en.wikipedia.org/wiki/Version
_
control
}{
Wikipedia
}}
\\
\\
\emph
{
A system that
\textbf
{
records changes
}
to a file or set of files
over time so that you can recall specific versions later.
}
\\
---
\textcolor
{
darkgray
}{
\href
{
https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control
}{
https://git-scm.com/
}}
General features:
\begin{itemize}
\item
Keeping track of your files in an orderly manner.
\begin{tikzpicture}
[remember picture,overlay]
\node
[xshift=-3.3cm,yshift=-7.2cm]
at (current page.north east)
{
\includegraphics
[width=4cm]
{
images/version
_
control-slide.pdf
}}
;
\end{tikzpicture}
\end{pframe}
\subsection
{
Step by step
}
\begin{pframe}
\begin{center}
\includegraphics
[width=1\textwidth]
{
images/vcs
_
example/vcs
_
example
_
00.pdf
}
\end{center}
\end{pframe}
\begin{pframe}
\begin{center}
\includegraphics
[width=1\textwidth]
{
images/vcs
_
example/vcs
_
example
_
01.pdf
}
\end{center}
\end{pframe}
\begin{pframe}
\begin{center}
\includegraphics
[width=1\textwidth]
{
images/vcs
_
example/vcs
_
example
_
02.pdf
}
\end{center}
\end{pframe}
\begin{pframe}
\begin{center}
\includegraphics
[width=1\textwidth]
{
images/vcs
_
example/vcs
_
example
_
03.pdf
}
\end{center}
\end{pframe}
\begin{pframe}
\begin{center}
\includegraphics
[width=1\textwidth]
{
images/vcs
_
example/vcs
_
example
_
04.pdf
}
\end{center}
\end{pframe}
\begin{pframe}
\begin{center}
\includegraphics
[width=1\textwidth]
{
images/vcs
_
example/vcs
_
example
_
05.pdf
}
\end{center}
\end{pframe}
\begin{pframe}
\begin{center}
\includegraphics
[width=1\textwidth]
{
images/vcs
_
example/vcs
_
example
_
06.pdf
}
\end{center}
\end{pframe}
\begin{pframe}
\begin{center}
\includegraphics
[width=1\textwidth]
{
images/vcs
_
example/vcs
_
example
_
07.pdf
}
\end{center}
\end{pframe}
\begin{pframe}
\begin{center}
\includegraphics
[width=1\textwidth]
{
images/vcs
_
example/vcs
_
example
_
08.pdf
}
\end{center}
\end{pframe}
\begin{pframe}
\begin{center}
\includegraphics
[width=1\textwidth]
{
images/vcs
_
example/vcs
_
example
_
09.pdf
}
\end{center}
\end{pframe}
\begin{pframe}
General features:
\begin{itemize}
\item
Keep track of your files in an orderly manner.
\begin{itemize}
\item
Hiding old versions.
\item
Recording who made changes and when.
\item
Hide old versions.
\item
Check the differences between current and older versions.
\item
Record who made changes and when.
\end{itemize}
\item
Enables collaboration.
\end{itemize}
\end{pframe}
\end{pframe}
\subsection
{
Why should I use it?
}
\begin{pframe}
\begin{figure}
[]
\begin{center}
\fbox
{
\includegraphics
[height=0.7\textheight]
{
project
_
tree
}
}
\end{center}
\caption
{
``I have my own system.''
}
\end{figure}
For a single user:
\begin{itemize}
\item
Revert files to a previous state.
\item
Revert the entire project back to a previous state.
\item
Review changes made over time.
\item
Backup.
\end{itemize}
\pause
For multiple users:
\begin{itemize}
\item
A reliable way to share files between people/computers.
\item
Allow multiple people working on the same project at the same time.
\item
Conflict resolution.
\item
See who made which changes at which time.
\end{itemize}
\end{pframe}
\subsection
{
Why should I
use it
?
}
\subsection
{
Why should I
not use version control
?
}
\begin{pframe}
For a single user:
\bigskip
\begin{itemize}
\item
Revert files to a previous state.
\item
Revert the entire project back to a previous state.
\item
Review changes made over time.
\item
Backup.
\item
I have my own system.
\end{itemize}
\bigskip
\pause
\begin{tikzpicture}
[remember picture,overlay]
\node
[xshift=-3.4cm,yshift=-5.4cm]
at (current page.north east)
{
\includegraphics
[width=6cm]
{
images/project
_
tree.pdf
}}
;
\end{tikzpicture}
\end{pframe}
For multiple users:
\begin{pframe}
A list of common excuses:
\begin{itemize}
\item
A reliable way to share files between people/computers.
\item
Allow multiple people working on the same project at the same time.
\item
Conflict resolution.
\item
See who made which changes at which time.
\item
I have my own system.
\item
It is too much work.
\item
I am the only one working
\\
on this project.
\item
This code will not be
\\
used by anyone else.
\item
The bugs can be
\\
tracked forever.
\item
\ldots
\end{itemize}
\begin{tikzpicture}
[remember picture,overlay]
\node
[xshift=-3.4cm,yshift=-5.4cm]
at (current page.north east)
{
\includegraphics
[width=6cm]
{
images/project
_
tree.pdf
}}
;
\end{tikzpicture}
\end{pframe}
\subsection
{
Why should I not use it?
}
\begin{pframe}
A list of common excuses:
\begin{itemize}
\item
It is too much work.
\item
I have my own system.
\item
I am the only one working on this project.
\item
This code will not be used by anyone else.
\item
The bugs can be tracked forever.
\item
It is too much work.
\item
I am the only one working
\\
on this project.
\item
This code will not be
\\
used by anyone else.
\item
The bugs can be
\\
tracked forever.
\item
\ldots
\end{itemize}
\bigskip
\pause
Eventually leading to:
\begin{itemize}
\item
I'm too busy rewriting the code I accidentally deleted.
\end{itemize}
\begin{tikzpicture}
[remember picture,overlay]
\node
[xshift=-3.8cm,yshift=-5.6cm]
at (current page.north east)
{
\includegraphics
[width=7cm]
{
images/desperate.pdf
}}
;
\end{tikzpicture}
\end{pframe}
\subsection
{
Local repository
}
\begin{pframe}
\begin{figure}
[]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment